Factor out performance timers into separate files
This should make graphics.cpp somewhat easier to navigate/read. GL_EXT_timer_query is also made optional, and if it's not present dummy functions will be called instead.
This commit is contained in:
parent
4ff563725b
commit
307eeb732d
4 changed files with 237 additions and 200 deletions
6
mkxp.pro
6
mkxp.pro
|
@ -60,7 +60,8 @@ HEADERS += \
|
|||
src/gl-util.h \
|
||||
src/util.h \
|
||||
src/config.h \
|
||||
src/tileatlas.h
|
||||
src/tileatlas.h \
|
||||
src/perftimer.h
|
||||
|
||||
SOURCES += \
|
||||
src/main.cpp \
|
||||
|
@ -87,7 +88,8 @@ SOURCES += \
|
|||
src/debuglogger.cpp \
|
||||
src/etc.cpp \
|
||||
src/config.cpp \
|
||||
src/tileatlas.cpp
|
||||
src/tileatlas.cpp \
|
||||
src/perftimer.cpp
|
||||
|
||||
EMBED = shader/transSimple.frag \
|
||||
shader/trans.frag \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue