Advertisement

Aggravating problem smoothly scrolling 2D world

Started by January 31, 2000 03:22 AM
0 comments, last by Architekt 24 years, 10 months ago
I''ve been working on a smooth scrolling tile based games lib on/off (more off) for the past 2 years and I''ve almost got it. I really don''t know how to even describe my problem, it''s just that it''s not scrolling "like it should". Is there source code anywhere for a basic non-isometric tile scroller? I couldn''t find any here (the smoothly scrolling tile based worlds article was a little confusing for me). Or heck, even a really good tutorial would be good (not for isometric engines, which this site has plenty of). Thanks =)
This may or may not be of any help but take a good look at you''re drawing or rendering loop and consider some of the following thoughts. I''m not an optimization expert but perhaps some of these will help:

Where is you''re data coming from for the drawing? VRAM is optimal if you have to room to store there but beware transfers from VRAM to SYSRAM; they''ll kill you. Also consider how you''re tiles or objects are being stored structure wise and referenced. If I have to search for each tile before its drawn in a 1000 item linked list that may hurt. Do as much prep work as you can before the drawing loop. I try to avoid any sort of construction of data, tiles, etc. in my drawing loop. All if it is done when the info comes off of disk. Keep you''re drawing loop to minimal amount of logic.

Not much but hope it helps.

Sieggy

This topic is closed to new replies.

Advertisement