Przeglądaj źródła

GL Performance improvements

Thomas Buck 9 lat temu
rodzic
commit
a09a34c8ad
3 zmienionych plików z 4 dodań i 3 usunięć
  1. 1
    0
      ChangeLog.md
  2. 2
    2
      src/Entity.cpp
  3. 1
    1
      src/Room.cpp

+ 1
- 0
ChangeLog.md Wyświetl plik

4
 
4
 
5
     [ 20150330 ]
5
     [ 20150330 ]
6
     * Removed custom Font support
6
     * Removed custom Font support
7
+    * Some GL performance improvements
7
 
8
 
8
     [ 20150326 ]
9
     [ 20150326 ]
9
     * No longer including gl.h globally, now only using gl33.h where needed.
10
     * No longer including gl.h globally, now only using gl33.h where needed.

+ 2
- 2
src/Entity.cpp Wyświetl plik

18
 #define CACHE_MODEL 2
18
 #define CACHE_MODEL 2
19
 
19
 
20
 bool Entity::showEntitySprites = true;
20
 bool Entity::showEntitySprites = true;
21
-bool Entity::showEntityMeshes = true;
22
-bool Entity::showEntityModels = true;
21
+bool Entity::showEntityMeshes = false;
22
+bool Entity::showEntityModels = false;
23
 
23
 
24
 void Entity::display(glm::mat4 VP) {
24
 void Entity::display(glm::mat4 VP) {
25
     if ((cache == -1) || (cacheType == -1)) {
25
     if ((cache == -1) || (cacheType == -1)) {

+ 1
- 1
src/Room.cpp Wyświetl plik

13
 #include <glm/gtx/intersect.hpp>
13
 #include <glm/gtx/intersect.hpp>
14
 
14
 
15
 bool Room::showBoundingBox = false;
15
 bool Room::showBoundingBox = false;
16
-bool Room::showRoomModels = true;
16
+bool Room::showRoomModels = false;
17
 bool Room::showRoomSprites = true;
17
 bool Room::showRoomSprites = true;
18
 bool Room::showRoomGeometry = true;
18
 bool Room::showRoomGeometry = true;
19
 
19
 

Ładowanie…
Anuluj
Zapisz