OS4.1
Radeon (not hd) driver.
Hollywood 7.0
GL Galore 1.1
Trying it tells more then thousand words, so change SmoothScroll.hws GL Galore example scripts line 45 to this:
@DISPLAY {width=600,mode="fullscreen",Color = #WHITE, Title = "Smooth scroll"}
I have changed it to fullscreen, and made the display smaller than the screen width. Here the displays right side (a 40x480 block) flickering black and white on every display refresh/flip.
Is there a solution for this?
fullscreen display surrounding flickering
- airsoftsoftwair
- Posts: 5446
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: fullscreen display surrounding flickering
Yes, this should be fixable. Thanks for reporting!
- airsoftsoftwair
- Posts: 5446
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: fullscreen display surrounding flickering
Ok, so this turned out to be a bug in the script. The problem is this line:
This will just draw a filled white rectangle but this is not a proper GL buffer clearing which should be done whenever flipping buffers. Thus, the following code should be used instead:
When Cls() is used with #BLACK (or no argument) it will properly clear the GL buffers which is needed when flipping buffers.
Code: Select all
Cls(#WHITE)
Code: Select all
Cls ; first clear buffers
Cls(#WHITE) ; now draw
Re: fullscreen display surrounding flickering
Yeah, that fixes the SmoothScroll example, but I just realized that GL Galore works on the full screen even if @DISPLAY width and height parameters define smaller area.
It can affect speed too. Working on a small display can be much slower on fullscreen than in window if the corresponding fullscreen screen is much larger than @DISPLAY defines.
Is it some miniGL or GPU limitation that only standard resolutions can be used effectively?
It can affect speed too. Working on a small display can be much slower on fullscreen than in window if the corresponding fullscreen screen is much larger than @DISPLAY defines.
Is it some miniGL or GPU limitation that only standard resolutions can be used effectively?
Re: fullscreen display surrounding flickering
Here is a better fix.
Instead of the two cls inside the loop:
Clear both buffers after BeginDoubleBuffer.
This will not affect speed.
Instead of the two cls inside the loop:
Code: Select all
BeginDoubleBuffer(True)
Cls
Flip
Cls
This will not affect speed.
- airsoftsoftwair
- Posts: 5446
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: fullscreen display surrounding flickering
I honestly don't know. Ask Hans de Ruiter... he should be able to telllazi wrote:Is it some miniGL or GPU limitation that only standard resolutions can be used effectively?