Decrease size of draw cache on OpenGLES devices
This commit is contained in:
parent
2c95604ebc
commit
ccec9c01eb
1 changed files with 7 additions and 1 deletions
|
|
@ -228,7 +228,13 @@ void DrawingProgramCache::build_bvh_node_coords_and_resolution(DrawingProgramCac
|
|||
// - We dont have to recalculate it every time we refresh the cache
|
||||
// - Some of the data here is needed to determine whether to generate the cache in the first place
|
||||
|
||||
const int MAX_DIMENSION_RESOLUTION = 2000;
|
||||
// NOTE: We're assuming that devices using OpenGLES are mobile devices have less VRAM, so we decrease the size of the draw cache
|
||||
// This isn't necessarily true, but it can improve performance on those devices without adding more settings
|
||||
#ifdef USE_BACKEND_OPENGLES_3_0
|
||||
const int MAX_DIMENSION_RESOLUTION = 1024;
|
||||
#else
|
||||
const int MAX_DIMENSION_RESOLUTION = 2048;
|
||||
#endif
|
||||
|
||||
WorldVec cacheBoundDim = node.bounds.dim();
|
||||
if(cacheBoundDim.x() > cacheBoundDim.y()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue