mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-23 12:32:34 +00:00
- reverted the counter for the vertex angle cache to a simple incrementing global variable.
Using I_MSTime is not precise enough, because some camera textures can be done quicker. It was pointless anyway trying to make this multithreading-safe, the entire caching idea here makes no sense if two clippers can simultaneously work on the same level data without changing the memory organization and rendering it ineffective.
This commit is contained in:
parent
1031481167
commit
f45371e231
2 changed files with 4 additions and 3 deletions
|
@ -38,10 +38,11 @@
|
|||
#include "gl/scene/gl_clipper.h"
|
||||
#include "g_levellocals.h"
|
||||
|
||||
unsigned Clipper::starttime;
|
||||
|
||||
Clipper::Clipper()
|
||||
{
|
||||
starttime = I_MSTime();
|
||||
starttime++;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
@ -94,7 +95,7 @@ void Clipper::Clear()
|
|||
|
||||
cliphead = NULL;
|
||||
silhouette = NULL;
|
||||
starttime = I_MSTime();
|
||||
starttime++;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
|
|
@ -30,7 +30,7 @@ class ClipNode
|
|||
|
||||
class Clipper
|
||||
{
|
||||
unsigned starttime;
|
||||
static unsigned starttime;
|
||||
FMemArena nodearena;
|
||||
ClipNode * freelist = nullptr;
|
||||
|
||||
|
|
Loading…
Reference in a new issue