Picture flickers

Feb 19, 2012 at 7:43 PM

Hey there,

I made a whole GUI with statusbar,...

So I have a problem now, my Background, statusbar, mouse, everything flickers.

And I know my mouse looks not like mouse should :D Im just working on that.

Look here:

http://revolution-apps.com/RevolutionOS/

 

I hope you can help me

TheKleini666

Feb 19, 2012 at 8:44 PM
TheKleini666 wrote:

Hey there,

I made a whole GUI with statusbar,...

So I have a problem now, my Background, statusbar, mouse, everything flickers.

And I know my mouse looks not like mouse should :D Im just working on that.

Look here:

http://revolution-apps.com/RevolutionOS/

 

I hope you can help me

TheKleini666

The answer, double buffer. Look at pears source: pearos.codeplex.com and under Core > Screen > ScreenHanlder. We use a buffer. The reason why your screen flickers is:

You draw everything and as soon as you do you see it drawn, this results in flicker. What we do is draw everything to a inivsible screen, Aka Buffer, and at the very end when we are done drawing we draw the entire picture to screen. So instead of you see each part of the picture update, you see the whole picture update as one. =). Hope it helps - Matt

Feb 20, 2012 at 4:33 AM
Wow that's a nice idea ;o

I'll try making a buffer today :)

Thanks.

TheKleini666


On 19.02.2012, at 22:44, "civilwarrock"<notifications@codeplex.com> wrote:

From: civilwarrock

TheKleini666 wrote:

Hey there,

I made a whole GUI with statusbar,...

So I have a problem now, my Background, statusbar, mouse, everything flickers.

And I know my mouse looks not like mouse should :D Im just working on that.

Look here:

http://revolution-apps.com/RevolutionOS/

I hope you can help me

TheKleini666

The answer, double buffer. Look at pears source: pearos.codeplex.com and under Core > Screen > ScreenHanlder. We use a buffer. The reason why your screen flickers is:

You draw everything and as soon as you do you see it drawn, this results in flicker. What we do is draw everything to a inivsible screen, Aka Buffer, and at the very end when we are done drawing we draw the entire picture to screen. So instead of you see each part of the picture update, you see the whole picture update as one. =). Hope it helps - Matt

Feb 20, 2012 at 4:54 AM
TheKleini666 wrote:
Wow that's a nice idea ;o
I'll try making a buffer today :)
Thanks.
TheKleini666

On 19.02.2012, at 22:44, "civilwarrock"<notifications@codeplex.com> wrote:

From: civilwarrock

TheKleini666 wrote:

Hey there,

I made a whole GUI with statusbar,...

So I have a problem now, my Background, statusbar, mouse, everything flickers.

And I know my mouse looks not like mouse should :D Im just working on that.

Look here:

http://revolution-apps.com/RevolutionOS/

 

I hope you can help me

TheKleini666

The answer, double buffer. Look at pears source: pearos.codeplex.com and under Core > Screen > ScreenHanlder. We use a buffer. The reason why your screen flickers is:

You draw everything and as soon as you do you see it drawn, this results in flicker. What we do is draw everything to a inivsible screen, Aka Buffer, and at the very end when we are done drawing we draw the entire picture to screen. So instead of you see each part of the picture update, you see the whole picture update as one. =). Hope it helps - Matt

No problem, if you have any trouble making one let me know, as I did make one myself. Thanks, yeah I came up with that after we had the same problem. Yours Truly - Matt