forked from AuroraMiddleware/gtk
gl: Increate the cache check frequency
Otherwise, we spread the cache over more atlases than necessary, increasing the amount of texture changes in each frame.
This commit is contained in:
parent
88649b6aae
commit
e9ba7eda47
@ -24,7 +24,7 @@
|
||||
* atlas and all the items it contained.
|
||||
*/
|
||||
|
||||
#define MAX_FRAME_AGE (5 * 60)
|
||||
#define MAX_FRAME_AGE (60)
|
||||
#define MAX_GLYPH_SIZE 128 /* Will get its own texture if bigger */
|
||||
|
||||
static guint glyph_cache_hash (gconstpointer v);
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
#include <epoxy/gl.h>
|
||||
|
||||
#define MAX_FRAME_AGE (5 * 60)
|
||||
#define MAX_FRAME_AGE 60
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user