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.

Newcomers DBPro Corner / fastest tiling algorithm

Author
Message
Llag
20
Years of Service
User Offline
Joined: 22nd Sep 2003
Location:
Posted: 1st Oct 2003 12:02
this is probably a dumb question:

im working on a 2d tile engine and am wondering if it is faster to just repaint all tiles during every pass through the game loop or paint all the tiles onto an offscreen bitmap and only repaint it if the camera moves. After I paint the tiles I paint the animated sprites ontop of everything. I can test this out but was wondering if somebody already knew so i could save some time.

Also Ive seen some code examples where people paint their tiles as sprites instead of just images. are there advantages/disadvantages to this? from what i saw making the tiles sprites caused tearing whereas just pasting images was much smoother

Login to post a reply

Server time is: 2024-09-21 03:43:48
Your offset time is: 2024-09-21 03:43:48