diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-06-20 00:34:39 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-06-21 00:59:10 +0300 |
commit | aa68511ad3d339be8c8f42fc6c083b696d8e687b (patch) | |
tree | 1bf138439c28b4a879c6b35e4361801bd5e1d246 /src/game.cpp | |
parent | 12002b81544038bc5855189c74aca761d0c08f1b (diff) | |
download | mv-aa68511ad3d339be8c8f42fc6c083b696d8e687b.tar.gz mv-aa68511ad3d339be8c8f42fc6c083b696d8e687b.tar.bz2 mv-aa68511ad3d339be8c8f42fc6c083b696d8e687b.tar.xz mv-aa68511ad3d339be8c8f42fc6c083b696d8e687b.zip |
Add delayed images load.
Can work for now only in OpenGL modes.
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp index 8fdb2b230..75317edac 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -23,6 +23,7 @@ #include "game.h" #include "auctionmanager.h" +#include "animatedsprite.h" #include "channelmanager.h" #include "commandhandler.h" #include "effectmanager.h" @@ -386,6 +387,8 @@ Game::Game(): top->add(viewport); viewport->requestMoveToBottom(); + AnimatedSprite::setEnableCache(mainGraphics->getOpenGL()); + createGuiWindows(); windowMenu = new WindowMenu; @@ -569,6 +572,8 @@ void Game::slowLogic() killStats->recalcStats(); if (shopWindow) shopWindow->updateTimes(); + if (mainGraphics->getOpenGL()) + ResourceManager::delayedLoad(); PacketCounters::update(); // Handle network stuff |