flicker when no transition is in use

1 view
Skip to first unread message

Martijn Faassen

unread,
Jul 5, 2008, 11:32:45 AM7/5/08
to bruce-users
Hi there,

I'm using Bruce 3.0beta2, and I notice there seems to be a slight
flicker to black when transitioning from page to page (when a colored
background is in use). This flickering doesn't occur when I set the
layout.background_color to black, but if a quad is in use somewhere
that'll still flicker.

Is there anything one can do about this?

Regards,

Martijn


Richard Jones

unread,
Jul 7, 2008, 5:52:20 PM7/7/08
to bruce...@googlegroups.com

Unfortunately I don't see this on my Linux systems (a desktop and an EEE PC).
I've added a potential fix. Please try the appended patch to see whether the
effect is lessened for you.


Richard

Index: bruce/presentation.py
===================================================================
--- bruce/presentation.py (revision 143)
+++ bruce/presentation.py (working copy)
@@ -36,6 +36,9 @@
# set up the initial page
old_page = self.page
self.page = page
+ bgcolor = page.content.stylesheet['layout']['background_color']
+ bgcolor = [c/255. for c in bgcolor]
+ pyglet.gl.glClearColor(*bgcolor)
page.desired_size = self.desired_size

# enter the page

Martijn Faassen

unread,
Jul 7, 2008, 6:54:30 PM7/7/08
to bruce...@googlegroups.com
Hi there,

Thanks for the patch. The flicker of the background now appears gone.
Unfortunately the quad that I draw at the bottom of the page does
still flicker (with the white background color).

I'm on a linux system myself as well (ubuntu with the nvidia drivers).

Regards,

Martijn

Richard Jones

unread,
Jul 7, 2008, 7:50:58 PM7/7/08
to bruce...@googlegroups.com

Hmm, that's odd. That describes my two more-powerful systems. If you are able, could you see what sorts of performance / quality you get out of other pyglet example code?


    Richard

Martijn Faassen

unread,
Jul 8, 2008, 5:54:58 PM7/8/08
to bruce...@googlegroups.com
Hey,

I have messed around with pyglet a bit actually last week, and the
performance seemed fine.

The one odd artifact I had was that hm.. I might have the name wrong
and it's late at EuroPython... fanned quads seemed to have an extra
line connecting them to another quad, and I think a pymunk demo that
used pyglet was showing these are artifacts, but perhaps that's just
normal. I've also done some work with pyglet sprites and they seem to
work just fine.

Regards,

Martijn

Richard Jones

unread,
Jul 9, 2008, 2:33:56 AM7/9/08
to bruce...@googlegroups.com
On Wed, 9 Jul 2008, Martijn Faassen wrote:
> I have messed around with pyglet a bit actually last week, and the
> performance seemed fine.

Righto, that was a long shot ;)


> The one odd artifact I had was that hm.. I might have the name wrong
> and it's late at EuroPython...

Darn, you're at EP too? I'm so jealous. Hassle the Cocos guys while you're
there tho, make them fix Bruce - there wasn't any problem before I integrated
the Cocos transitions :)


Richard

Martijn Faassen

unread,
Jul 9, 2008, 2:56:04 AM7/9/08
to bruce...@googlegroups.com
Hey,

And in fact that artifact was on my desktop, not this laptop. I
haven't tried things on this laptop.

I will have to track down the cocos2d guys to hassle them. :)

Regards,

Martijn

Reply all
Reply to author
Forward
0 new messages