|
-
Nov 28th, 2000, 02:40 PM
#1
Thread Starter
Addicted Member
When I draw something on a DirectX surface it sometimes flashes. Why?
-
Nov 29th, 2000, 02:55 AM
#2
Thread Starter
Addicted Member
-
Nov 29th, 2000, 03:02 AM
#3
PowerPoster
Thats the problem use a backbuffer
-
Nov 29th, 2000, 03:22 AM
#4
Frenzied Member
Look up double-buffering (or even triple-buffering) for info on using a back buffer. Basically you create a secondary surface the same size as your primary surface and construct your image on that, and then you 'flip' the whole secondary surface onto your primary. This way it doesn't flicker, unless the frame rate is very low.
Harry.
"From one thing, know ten thousand things."
-
Nov 29th, 2000, 05:49 AM
#5
PowerPoster
hm, with low frame rates you dont get flickering... since you just flip the buffers you will probably have 3 pictures per second but it wont flicker
-
Nov 29th, 2000, 10:14 AM
#6
Thread Starter
Addicted Member
Thanks... I'll try using backbuffers.
-
Nov 29th, 2000, 04:45 PM
#7
Frenzied Member
Fox - well err yeah I didn't really mean flickering, just general jerkiness. My mistake.
Harry.
"From one thing, know ten thousand things."
-
Nov 29th, 2000, 05:15 PM
#8
PowerPoster
ok - accepted
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|