Module darkplaces: Change committed

havoc at icculus.org havoc at icculus.org
Mon May 1 05:00:32 EDT 2006


Commiter   : havoc
CVSROOT    : /cvs/cvsroot/twilight
Module     : darkplaces
Commit time: 2006-05-01 09:00:32 UTC

Log message:

restructured RSurf_DrawLightmap to become RSurf_DrawBatch_Lightmap which processes all arrays and sets things up perfectly, then renders all the surfaces with a call to R_DrawBatch_Simple
added dynamic surface-merging to R_DrawBatch_Simple, depending on the new r_batchmode cvar it either renders surfaces individually (as before), consecutively (consecutively numbered surfaces are rendered with one call for their combined triangle elements range), or by memcpy merging elements into one array (this has rather chaotic vertex ranges so gl_lockarrays is disabled in this code because it is a consistent speed loss in this case)
this optimization increased fps by 4.7% in timedemo bigass1, and offers bigger gains in very high poly q1bsp and q3bsp maps

Modified files:
     gl_rmain.c
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: darkplaces.20060501.090032.havoc.diff
URL: <http://icculus.org/pipermail/twilight-commits/attachments/20060501/f81befe2/attachment.diff>


More information about the twilight-commits mailing list