2010/4/26 Lucas Caro™ <[email protected]> > sorry for the multipart email :S maybe this has something to do with the > issue: > > Exception ctypes.ArgumentError: "argument 2: <type > 'exceptions.TypeError'>: expected LP_c_uint instance instead of > pointer to c_ulong" in <bound method FramebufferObject.__del__ of > <cocos.gl_framebuffer_object.FramebufferObject object at 0x3a19e10>> > ignored > > That's shown in the console only when i move slowly. > > cheers. > > Thanks Lucas for uncover this ! There is a type mismatch in cocos gl_framebuffer.py It is unrelated to the issue, but will leak GL memory. I will checkin the issue and fix
> > 2010/4/26 Lucas Caro™ < <[email protected]> > > [email protected] > > >: > > 2010/4/26 Lucas Caro™ <[email protected]>: > >> using > >> cocos 0.3.0 > >> linux 2.6.32-trunk-amd64 > >> Python 2.5.5 > >> pyglet 1.1.2 > >> > >> when i move the menu using the keyboard, the transitions are not shown > >> unles i move the keyboard really fast. > > > > actually, they are executed and shown but really, really fast so it > > seems there are no transitions (duration ~= 0). > > > Thanks Lucas and Facundo for the test. After your report I revisited the issue and could reproduce it. As the original poster has guessed, this have to do with the known pyglet behavior of slow down the fps when no events in the queue: the animation last 0.2 sec, and the fps were around 13, so you get one or two frames for the animation. Possible solutions: 1. in cocos.menu.Menu.__init__ schedule a do_nothing (tested, works) or 2. in cocos.menu.Menu boost temporaly the fps when on_key_press and key.DOWN or KEYUP (tested, works) or 3. modify the relevant tests to add a do_nothing in the Menu subclass (tested, works). Add the appropriate comment so that users knows why the do_nothing is used. Anyway, they must know this for scenes that not contain a menu. I favor the third, because it exposes a behavior that the user must know, but I open to adopt other. Comments ? -- claudio -- You received this message because you are subscribed to the Google Groups "cocos2d discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/cocos-discuss?hl=en.
