Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Lag problem need help and fast

Author
Message
JIMAC
8
Years of Service
User Offline
Joined: 25th Nov 2011
Location: Scotland
Posted: 25th Apr 2012 17:57


Ok so I'm making a really basic 2d perspective view type game for a class assessment, my setup is in the code but the character sprite movement is really laggy, when i change the speed the sprite moves slightly faster but in a blinking motion(best description in can think of). So is there anywhere i should put dbSync() or is there an other fix, thanks in advance.
Matty H
11
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 25th Apr 2012 23:52
You should not need to load media in your loop, load the map once before your loop perhaps.

Fallout
17
Years of Service
User Offline
Joined: 1st Sep 2002
Location: Basingstoke, England
Posted: 26th Apr 2012 12:35
Yes, as Matty said. Paste the map image every loop, but only load it once before the main loop.

JIMAC
8
Years of Service
User Offline
Joined: 25th Nov 2011
Location: Scotland
Posted: 27th Apr 2012 13:07
Thanks Guys fast response and problem solved!

Login to post a reply

Server time is: 2020-02-20 07:46:55
Your offset time is: 2020-02-20 07:46:55