Archived

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

just a simple question

This topic is 5670 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

Can a directdraw 7 backbuffer be in system memory? would this be a severe performance hit?.. I want to keep every surface in sysmen except the primary buffer (which of course is impossible :-).. do sys->sys blit.. and then flip.. But as I understand pageflipping is archieved by swapping vidmem pointers.. and then it won''t work if the backbuffer is in sysmem.. then it should be done with a sysmen backbuffer surface and a regular blt?.. I need to alter my backbuffer heavily for certain effects.. and reading from vidmem IS very slow.. So I should treat the vidmem as write only right?

Share this post


Link to post
Share on other sites
I''m programming with DirectDraw, and messing with the backbuffer by doing some reads to modify the data, as well.

Has anyone testing any of the latest video cards on how fast you can read from the video buffer, in comparison to how fast you can write to it?

Just curious. I may make a program to do this myself if no one has.

Jason Doucette
http://www.jasondoucette.com/

Share this post


Link to post
Share on other sites

Reading from video memory is slow. If you''re doing a lot of pixel pushing, don''t do it on a video surface.

You can either write to an offscreen sysmem surface and blit to the primary (you''ll get tearing) or write to the offscreen sysmem surface and blit to a video mem backbuffer and flip.


Stay Casual,

Ken
Drunken Hyena

Share this post


Link to post
Share on other sites