Skip to content

Commit

Permalink
[rend2] Raise poly/polyverts cvar default and apply fix from 1d8bff1 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
taysta authored May 15, 2024
1 parent 93c2c1a commit 1635da6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions codemp/rd-rend2/tr_init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,8 @@ cvar_t *r_surfaceSprites;

// the limits apply to the sum of all scenes in a frame --
// the main view, all the 3D icons, etc
#define DEFAULT_MAX_POLYS 600
#define DEFAULT_MAX_POLYVERTS 3000
#define DEFAULT_MAX_POLYS 32000
#define DEFAULT_MAX_POLYVERTS 128000
cvar_t *r_maxpolys;
cvar_t *r_maxpolyverts;
int max_polys;
Expand Down
2 changes: 1 addition & 1 deletion shared/rd-rend2/tr_scene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ void RE_AddPolyToScene( qhandle_t hShader, int numVerts, const polyVert_t *verts
}

for ( j = 0; j < numPolys; j++ ) {
if ( (r_numpolyverts + numVerts) > max_polyverts || r_numpolys >= max_polys ) {
if ( (r_numpolyverts + numVerts) >= max_polyverts || r_numpolys >= max_polys ) {
ri.Printf(
PRINT_DEVELOPER,
S_COLOR_YELLOW "WARNING: RE_AddPolyToScene: r_max_polys or r_max_polyverts reached\n");
Expand Down

0 comments on commit 1635da6

Please sign in to comment.