mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 14:51:51 +00:00
- added minimal time profiling of texture precaching
This commit is contained in:
parent
daedf9d158
commit
a0670f5c5b
1 changed files with 7 additions and 0 deletions
|
@ -222,6 +222,10 @@ void hw_PrecacheTexture(uint8_t *texhitlist, TMap<PClassActor*, bool> &actorhitl
|
|||
|
||||
if (gl_precache)
|
||||
{
|
||||
cycle_t precache;
|
||||
precache.Reset();
|
||||
precache.Clock();
|
||||
|
||||
FImageSource::BeginPrecaching();
|
||||
|
||||
// cache all used textures
|
||||
|
@ -271,6 +275,9 @@ void hw_PrecacheTexture(uint8_t *texhitlist, TMap<PClassActor*, bool> &actorhitl
|
|||
Models[i]->BuildVertexBuffer(renderer);
|
||||
}
|
||||
delete renderer;
|
||||
|
||||
precache.Unclock();
|
||||
Printf(DMSG_NOTIFY, "Textures precached in %.3f ms\n", precache.TimeMS());
|
||||
}
|
||||
|
||||
delete[] spritehitlist;
|
||||
|
|
Loading…
Reference in a new issue