Results 1 to 8 of 8

Thread: Prevent DirectX surfaces from flashing?

  1. #1

    Thread Starter
    Addicted Member danielkw's Avatar
    Join Date
    Mar 2000
    Location
    Sweden
    Posts
    134

    Question

    When I draw something on a DirectX surface it sometimes flashes. Why?

  2. #2

    Thread Starter
    Addicted Member danielkw's Avatar
    Join Date
    Mar 2000
    Location
    Sweden
    Posts
    134
    No

  3. #3
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    Thats the problem use a backbuffer

  4. #4
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    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."

  5. #5
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    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

  6. #6

    Thread Starter
    Addicted Member danielkw's Avatar
    Join Date
    Mar 2000
    Location
    Sweden
    Posts
    134
    Thanks... I'll try using backbuffers.

  7. #7
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    Fox - well err yeah I didn't really mean flickering, just general jerkiness. My mistake.
    Harry.

    "From one thing, know ten thousand things."

  8. #8
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    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
  •  



Click Here to Expand Forum to Full Width