That doesn't sound right. I'd suggest changing your main loop to update the position of that frame every draw cycle and the profile it like `python -m cProfile -s cumtime your_script.py`
Elliot On Tue, Feb 2, 2016 at 11:56 PM, Charlie <[email protected]> wrote: > Ah I see. In my GUI, the windows are movable and can be overlapped on one > another; as such each widget is rendered one by one based on the order they > were added to the container. So this makes trying to fit pyglet text and > batching in there difficult. > > What I ended up doing was just creating a separate batch for each of my > "containers" that hold widgets. This way each container can overlap without > issue. > > I have however noticed performance issues on moving labels. Since my > Window containers are movable, I want to drag them around sometimes. When > trying to update the position of the Labels of a particular container, the > FPS just dies and goes to 0. Even if there is just a handful. Is there > anyway to update the batch to move all objects by X, Y to improve > performance? Or any suggestion/hacks? :) Thanks. > > On Saturday, January 30, 2016 at 9:44:17 AM UTC-6, Serdar Yegulalp wrote: >> >> Most of what I've been doing involves HUD display type things where the >> order is fixed to begin with, so I haven't yet run into a scenario where I >> have to re-order the batch. One thing you can do is set up two batches, one >> for background and one for foreground elements, add to the appropriate >> batches as needed, and then draw those batches back to front (background, >> then foreground). >> > -- > You received this message because you are subscribed to the Google Groups > "pyglet-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/pyglet-users. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/pyglet-users. For more options, visit https://groups.google.com/d/optout.
