mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
Set bigger limits
This commit is contained in:
parent
d36f19fda5
commit
1a5a0922c8
3 changed files with 16 additions and 14 deletions
|
@ -158,9 +158,8 @@ extern oldrefdef_t r_refdef;
|
|||
|
||||
#define DS_SPAN_LIST_END -128
|
||||
|
||||
#define NUMSTACKEDGES 2000
|
||||
#define NUMSTACKSURFACES 1000
|
||||
#define MAXSPANS 3000
|
||||
#define NUMSTACKEDGES 3072
|
||||
#define NUMSTACKSURFACES 2048
|
||||
|
||||
// flags in finalvert_t.flags
|
||||
#define ALIAS_LEFT_CLIP 0x0001
|
||||
|
@ -185,7 +184,7 @@ extern oldrefdef_t r_refdef;
|
|||
#define NEAR_CLIP 0.01
|
||||
|
||||
|
||||
#define MAXALIASVERTS 2000 // TODO: tune this
|
||||
#define MAXALIASVERTS 2048 // TODO: tune this
|
||||
#define ALIAS_Z_CLIP_PLANE 4
|
||||
|
||||
// turbulence stuff
|
||||
|
|
|
@ -235,7 +235,7 @@ finalvert_t *finalverts;
|
|||
static void
|
||||
R_AliasPreparePoints (void)
|
||||
{
|
||||
int i;
|
||||
int i;
|
||||
dstvert_t *pstverts;
|
||||
dtriangle_t *ptri;
|
||||
finalvert_t *pfv[3];
|
||||
|
@ -250,9 +250,9 @@ R_AliasPreparePoints (void)
|
|||
aliasbatchedtransformdata.dest_verts = pfinalverts;
|
||||
|
||||
R_AliasTransformFinalVerts( aliasbatchedtransformdata.num_points,
|
||||
aliasbatchedtransformdata.dest_verts,
|
||||
aliasbatchedtransformdata.last_verts,
|
||||
aliasbatchedtransformdata.this_verts );
|
||||
aliasbatchedtransformdata.dest_verts,
|
||||
aliasbatchedtransformdata.last_verts,
|
||||
aliasbatchedtransformdata.this_verts );
|
||||
|
||||
// clip and draw all triangles
|
||||
//
|
||||
|
|
|
@ -429,9 +429,12 @@ void R_NewMap (void)
|
|||
if (r_numallocatededges < NUMSTACKEDGES)
|
||||
r_numallocatededges = NUMSTACKEDGES;
|
||||
|
||||
R_Printf(PRINT_ALL, "%s: Allocated %d edges\n",
|
||||
__func__, r_numallocatededges);
|
||||
r_edges = malloc (r_numallocatededges * sizeof(edge_t));
|
||||
|
||||
R_Printf(PRINT_ALL, "%s: Allocated %d edges\n",
|
||||
__func__, r_numallocatededges);
|
||||
R_Printf(PRINT_ALL, "%s: Allocated %d surfaces\n",
|
||||
__func__, r_cnumsurfs);
|
||||
}
|
||||
|
||||
|
||||
|
@ -1058,14 +1061,14 @@ RE_RenderFrame (refdef_t *fd)
|
|||
if (sw_reportsurfout->value && r_outofsurfaces)
|
||||
R_Printf(PRINT_ALL,"Short %d surfaces\n", r_outofsurfaces);
|
||||
else if (r_outofsurfaces)
|
||||
R_Printf(PRINT_ALL, "%s: not enough %d surfaces\n",
|
||||
__func__, r_cnumsurfs);
|
||||
R_Printf(PRINT_ALL, "%s: not enough %d(+%d) surfaces\n",
|
||||
__func__, r_cnumsurfs, r_outofsurfaces);
|
||||
|
||||
if (sw_reportedgeout->value && r_outofedges)
|
||||
R_Printf(PRINT_ALL,"Short roughly %d edges\n", r_outofedges * 2 / 3);
|
||||
else if (r_outofedges)
|
||||
R_Printf(PRINT_ALL, "%s: not enough %d edges\n",
|
||||
__func__, r_numallocatededges);
|
||||
R_Printf(PRINT_ALL, "%s: not enough %d(+%d) edges\n",
|
||||
__func__, r_numallocatededges, r_outofedges * 2 / 3);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue