fix performance problems due to SCREEN_WIDTH being evaluated many times per frame, leading to many Lua compilations per frame
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
#include "global.h"
|
||||
#include "ScreenDimensions.h"
|
||||
|
||||
ThemeMetric<float> SCREEN_WIDTH("Common","ScreenWidth");
|
||||
ThemeMetric<float> SCREEN_HEIGHT("Common","ScreenHeight");
|
||||
|
||||
/*
|
||||
* (c) 2001-2002 Chris Danford
|
||||
|
||||
Reference in New Issue
Block a user