Reversed decreasing resolution for Emscripten, as it's causing graphical glitches
This commit is contained in:
parent
5eb66dabdd
commit
a010f306c6
1 changed files with 1 additions and 2 deletions
|
|
@ -230,8 +230,7 @@ void DrawingProgramCache::build_bvh_node_coords_and_resolution(DrawingProgramCac
|
||||||
|
|
||||||
// NOTE: We're assuming that devices using OpenGLES are mobile devices have less VRAM, so we decrease the size of the draw cache
|
// 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
|
// This isn't necessarily true, but it can improve performance on those devices without adding more settings
|
||||||
// Emscripten has less RAM to work with, so this is a good assumption to make
|
#if defined(USE_BACKEND_OPENGLES_3_0)
|
||||||
#if defined(__EMSCRIPTEN__) || defined(USE_BACKEND_OPENGLES_3_0)
|
|
||||||
const int MAX_DIMENSION_RESOLUTION = 1024;
|
const int MAX_DIMENSION_RESOLUTION = 1024;
|
||||||
#else
|
#else
|
||||||
const int MAX_DIMENSION_RESOLUTION = 2048;
|
const int MAX_DIMENSION_RESOLUTION = 2048;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue