PDA

Click to See Complete Forum and Search --> : Prevent DirectX surfaces from flashing?


danielkw
Nov 28th, 2000, 01:40 PM
When I draw something on a DirectX surface it sometimes flashes. Why?

danielkw
Nov 29th, 2000, 01:55 AM
No

Fox
Nov 29th, 2000, 02:02 AM
Thats the problem ;) use a backbuffer

HarryW
Nov 29th, 2000, 02:22 AM
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.

Fox
Nov 29th, 2000, 04:49 AM
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 ;)

danielkw
Nov 29th, 2000, 09:14 AM
Thanks... I'll try using backbuffers.

HarryW
Nov 29th, 2000, 03:45 PM
Fox - well err yeah I didn't really mean flickering, just general jerkiness. My mistake.

Fox
Nov 29th, 2000, 04:15 PM
ok - accepted ;)