5.ppt - Double Buffering and Multithreading Page Flipping...

Info iconThis preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Page Flipping via Pointer Switching When a page flip occurs, the pointer to the old back buffer now points to the primary surface and the pointer to the old primary surface now points to the back buffer memory. This sets you up automatically for the next draw operation.
Background image of page 2
Primary Surface and Back Buffer The screen surface is commonly referred to as the primary surface , and the offscreen image used for double-buffering is commonly referred to as the back buffer . The act of copying the contents from one surface to another is frequently referred to as a block line transfer.
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Receiving and Processing Buffers Data Sampling Data Processin g Double-Buffering for Data Reception and Process Back Buffer Primary Buffer Processin g Pointer Writing
Background image of page 4
Circular Buffering Data Sampling Data Processin g Circular-Buffering for Data Reception and Process Primary Buffer Writing Pointer Processing Pointer Writing_Pointer := mod (total_writing_count, buffer_size); Processing_Pointer := mod(total_processing_count, buffer_size);
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Circular Buffering (Cont.) Data Sampling Data Processin g Pointers’ Chases in Circular-Buffering Primary Buffer Writing Pointer Processing Pointer
Background image of page 6
Multithreading Historically, concurrency has been implemented as
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/18/2010 for the course ECE 3510 taught by Professor Staff during the Fall '08 term at Western Michigan.

Page1 / 24

5.ppt - Double Buffering and Multithreading Page Flipping...

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online