pyglet on PyPy?

375 views
Skip to first unread message

Chuck

unread,
Oct 28, 2011, 3:40:59 PM10/28/11
to pyglet-users
I'm curious if anyone has tried pyglet on PyPy 1.6.

I tried it on an older version about a year ago, and while it worked,
it was very slow. I was told this was due to the way PyPy handled
ctypes.

I see that the latest version says: "fast ctypes: now calls to
ctypes functions are seen and optimized by the JIT, and they are up to
60 times faster than PyPy 1.5 and 10 times faster than CPython"

Unfortunately, I'm running windows, and the PyPy windows build does
not work for me.

Has anyone played around with PyPy and benchmarked pyglet on it?

Steve

unread,
Oct 28, 2011, 6:33:21 PM10/28/11
to pyglet-users
My brief tests showed moderate speed improvements and good
compatibility.

Bruce Smith

unread,
Oct 28, 2011, 7:29:42 PM10/28/11
to pyglet...@googlegroups.com
On Fri, Oct 28, 2011 at 3:33 PM, Steve <dio...@gmail.com> wrote:
My brief tests showed moderate speed improvements and good
compatibility.


Which OS, pyglet version, and Python version was that for?

- Bruce Smith
 

On Oct 28, 3:40 pm, Chuck <chuck.may...@gmail.com> wrote:
> I'm curious if anyone has tried pyglet on PyPy 1.6.
>
> I tried it on an older version about a year ago, and while it worked,
> it was very slow. I was told this was due to the way PyPy handled
> ctypes.
>
> I see that the latest version says:   "fast ctypes: now calls to
> ctypes functions are seen and optimized by the JIT, and they are up to
> 60 times faster than PyPy 1.5 and 10 times faster than CPython"
>
> Unfortunately, I'm running windows, and the PyPy windows build does
> not work for me.
>
> Has anyone played around with PyPy and benchmarked pyglet on it?

--
You received this message because you are subscribed to the Google Groups "pyglet-users" group.
To post to this group, send email to pyglet...@googlegroups.com.
To unsubscribe from this group, send email to pyglet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en.


hedgie

unread,
Oct 28, 2011, 9:17:04 PM10/28/11
to pyglet-users
In my experience (Ubuntu 64, SVN pyglet), PyPy was about 50% faster
fps than CPython.

However, it has a very inconsistent framerate, and would spontaneously
and momentarily drop to extremely, extremely low framerates (my
suspicion is that it is related to garbage collection).

Also, lots and lots of warnings about stuff (mostly ctypes).

On Oct 28, 4:29 pm, Bruce Smith <ores...@gmail.com> wrote:

Steve

unread,
Oct 29, 2011, 11:42:47 AM10/29/11
to pyglet-users
> Which OS, pyglet version, and Python version was that for?

Sorry for leaving out those important details. I was on my phone.

This was Mac OS X 10.7.1, pyglet 1.1.4, Python 2.7. Similar results as
hedgie.

-Steve Johnson

Richard Jones

unread,
Oct 29, 2011, 7:08:55 PM10/29/11
to pyglet...@googlegroups.com
Please also include the version of PyPy that you tested.


Richard

Leonardo Santagada

unread,
Nov 8, 2011, 1:20:24 PM11/8/11
to pyglet...@googlegroups.com
Please create bug reports on the pypy issue tracker https://bugs.pypy.org/. They are working on a better gc for these workloads and having use cases can help push people to finish it for pypy 1.7
Reply all
Reply to author
Forward
0 new messages