- first batch of adjustments to the new tile management.

- consolidated Polymost precaching and removed precaching for static tiles because they now are always loaded.
- removed cache configurability. On modern systems this is relatively pointless - allocating 50 or 100 MB is a non-issue - and the cache is due for replacement anyway.
This commit is contained in:
Christoph Oelckers 2019-10-15 00:54:14 +02:00
parent 4b6f28e7c8
commit 0e165e40a3
37 changed files with 84 additions and 290 deletions

View file

@ -633,8 +633,14 @@ void DoTheCache(void)
{
if ((TEST(gotpic[i>>3], 1<<(i&7))) && (!tilePtr(i)))
{
tileLoad(i);
cnt++;
// For the hardware renderer precaching the raw pixel data is pointless.
if (videoGetRenderMode() < REND_POLYMOST)
tileLoad(i);
#ifdef USE_OPENGL
/*if (useprecache)*/ PrecacheHardwareTextures(i);
#endif
cnt++;
if (!(cnt&7))
{
AnimateCacheCursor();