Welcome, Guest. Please login or register.

Author Topic: Double Buffer Example Convolted  (Read 2546 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline NovaCoder

Re: Double Buffer Example Convolted
« on: November 18, 2010, 11:25:55 PM »
Hiya,

Can you post the source code in this thread (I think Hypex already sent it to me but it would be good to see it here).

I had a play around with this already and found it a bit of a pain in the ass to get working.

From what I found the following code *seems* to achive the same results for a single threaded application:

Code: [Select]

// Flip.
while (ChangeScreenBuffer(video_screen, screenBuffer[drawBuffer]) == 0) {
/* do nothing! */ ;
}


The idea being that ChangeScreenBuffer() returns zero if it can't do the flip and probably does the signal checking stuff internally.

UtilityBase
« Last Edit: November 18, 2010, 11:28:20 PM by NovaCoder »
Life begins at 100 MIPS!


Nice Ports on AmiNet!