mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-04-24 02:32:18 +00:00
Render MOC faster at half res like in Avalanche Engine
This commit is contained in:
parent
ca3f8cd183
commit
eca0544339
1 changed files with 4 additions and 0 deletions
|
@ -519,6 +519,10 @@ void R_FillMaskedOcclusionBufferWithModels( viewDef_t* viewDef )
|
|||
int viewWidth = viewDef->viewport.x2 - viewDef->viewport.x1 + 1;
|
||||
int viewHeight = viewDef->viewport.y2 - viewDef->viewport.y1 + 1;
|
||||
|
||||
// reduce to half res
|
||||
viewWidth = idMath::Floor( viewWidth * 0.5f );
|
||||
viewHeight = idMath::Floor( viewHeight * 0.5f );
|
||||
|
||||
if( viewWidth & 7 )
|
||||
{
|
||||
// must be multiple of 8
|
||||
|
|
Loading…
Reference in a new issue