Archived

This topic is now archived and is closed to further replies.

Virtual screens

This topic is 6638 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Guest Anonymous Poster
The only other way is to only write to each pixel once, or no times each frame.

Since this can be impossible in some cases, or requires huge amounts of processing, this will almost definitely be slower that a virtual screen.

The only alternative is page flipping where you have a screen sized area in video memory which you write to, and then make the card send that memory to the monitor, while you write to a different screen buffer, still in video memory, so that no memory is copied, the video card just looks in a different place. This is very fast, but if you are running in 640x480x16bpp then you need around 1.5 mb of video memory so make sure the video card can do that (most video cards should be able to quite easily these days).

There are numerous tutorials on how to move the video cards page pointer, but I don't know any specific ones. Look around.

------------------
LoungePig
OpenGUI

Share this post


Link to post
Share on other sites
Is there a better way to avoid flicker than virtual screens. Virtual screens is so slow especially in 640x480.

If i am syncronising my game with the timer how can i then avoid flicker since i am not syncronising with ther virtual retrace. Is there a way of syncronising with both of them.

- Thanks -

------------------

Share this post


Link to post
Share on other sites