Hi Dan, I just had a thought. I'm now running the Wayland display server on both of my Linux machines, since Gnome has recently moved to it by default. Wayland itself is great, but legacy Xorg applications (of which pyglet is one), run inside a thin Xorg instance on top of Wayland. I'm not sure if this is having any effect, but It's definitely worth a test. I'll test this later today under a pure Xorg display server and let you know if there is any difference. It doesn't account for the fact that it runs smoothly with the silent audio player, but it's still worth a test.
-Ben On Wednesday, April 12, 2017 at 10:15:56 PM UTC+9, Benjamin Moran wrote: > > Hey Dan, > > It doesn't seem CPU related. None of my cores crested 20% or so while > testing. I've also done a few VMProf profiles as well, and it looks like > resource usage is really low (much lower than expected, really). > > With the debug prints, it looks like both the silent and openal/pulse > playbacks have some skipped frames. Not many though. Generally they looked > like this: > > > > > *Frames discarded at timestamp 0.04. Missed by 0.06. time 0.10Frames > discarded at timestamp 10.68. Missed by 0.10. time 10.78Frames discarded at > timestamp 10.72. Missed by 0.06. time 10.78Frames discarded at timestamp > 10.80. Missed by 0.05. time 10.85* > I also looked at Radeontop (a linux graphics profiling tool), and it > looked like GPU usage was almost zero. Even so, maybe it's an issue with > the Mesa graphics stack I'm using. It would be great to have someone else > with perhaps an Nvidia card on Linux try it. It would be a good sanity > check, to make sure it's not just a specific thing to my systems (both of > which are running Arch Linux). > > I've sent you a request on Skype as well, so I'll see if I can catch you > there. > > -Ben > > > > > > > > On Wednesday, April 12, 2017 at 7:07:26 PM UTC+9, Daniel Gillet wrote: >> >> Hello, >> >> I think I could only download the movie from the torrent link. >> >> Thanks for the clarifications. I understand it happens with both OpenAL >> and PulseAudio. The silent audio driver is obviously less CPU intensive, >> which might be why the video plays nicely. Unless it's the audio time which >> is creating problems. But it means it would happen both with OpenAL and >> PulseAudio. >> >> For a skype call, my pseudo is danb737. Let's try to organise something >> there. >> >> In the meantime, could you try the following: >> >> - On lines 273-273, remove the if _debug: so that the next print >> statement will happen without debugging. This is easier than turning >> debugging on, as you will be flooded by other debug messages. >> >> Let me know if you get a lot of print statements telling that the frame >> was skipped. And let me know by how much time is was missed. This would >> help in determining if that is what makes the stuttering. >> >> Also have a look at your CPU usage. Is it close to full on a single core? >> >> Thanks for helping! >> Dan >> > -- 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.
