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.

2D All the way! / frame-shift

Author
Message
glint
22
Years of Service
User Offline
Joined: 9th Feb 2004
Location: the Synth
Posted: 15th May 2004 07:39
I have succeeded with my tile-using, reloading scrolling program. I use an array, which causes pieces of a tilesheet to be pasted to an intermediate bitmap. Different locations on the intermediate bitmap are pasted to the screen when you move, and when you reach the edge of the intermediate bitmap, it refreshes and your position is wrapped around.

Anyway, this works seamlessly in 800X600 Fullscreen Mode. However, when I use any other mode (800X600), there is a flicker or a jerk whenever I move.

What is my problem here? And why does the frame-jerk not happen in fullscreen?
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 15th May 2004 13:40
It's because fullscreen-exclusive mode forces a wait for the displays vertical-sync, while windowed modes don't.

Try running this code in both windowed and fullscreen-exclusive modes and you'll see the difference



*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins, source and the Interface library for Visual C++ 6, .NET and now for Dev-C++ http://www.matrix1.demon.co.uk
glint
22
Years of Service
User Offline
Joined: 9th Feb 2004
Location: the Synth
Posted: 18th May 2004 05:23
Thanks! I thought there was something wrong with my code.

Login to post a reply

Server time is: 2026-06-09 13:55:46
Your offset time is: 2026-06-09 13:55:46