Skip to content
Snippets Groups Projects
Commit 8b441612 authored by dg's avatar dg
Browse files

main menu reduced CPU usage

git-svn-id: http://svn.net-core.org/repos/t-engine4@592 51575b47-30f0-44d4-a5cc-537603b46e54
parent 70ef49af
No related branches found
No related tags found
No related merge requests found
......@@ -45,6 +45,10 @@ function _M:run()
self:setCurrent()
end
function _M:tick()
return true
end
function _M:display()
if self.background then
local bw, bh = self.background:getSize()
......
......@@ -528,7 +528,6 @@ int main(int argc, char *argv[])
while (!exit_engine)
{
if (!isActive || tickPaused) SDL_WaitEvent(NULL);
// else if (tickPaused) SDL_Delay(1000 / 30);
/* handle the events in the queue */
while (SDL_PollEvent(&event))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment