Category archives: Snaking
Discussions of programming, particularly of programming Python
Where does the time go?
Written by
on
in
Snaking.
So I just looked at my calendar and went "gulp". PyCon.ca is just 3 (or 4, depending how you want to count) days away. I've got my presentation roughed out, but I don't have Coldshot to the point where it can be released as a 1.0 implementation.
I also still need to play with statprof, ...
Line localtime inadvertantly implemented...
Written by
on
in
Snaking.
Started really looking at the results from Coldshot and realized that the line timings just didn't add up to the function timings... because the line-timings were "localtime" rather than "cumtime". Local time is actually pretty interesting as a piece of information, but I'm guessing 95% of the time you actually want cumtime when you are ...
Coldshot progress...
Written by
on
in
Snaking.
Been playing with my experimental profiler (Coldshot) all day.
At this point it can load an OpenGLContext run with 207MB of trace data and produce a basic textual summary (both cProfile-style calls/timing and file:line level timings) in around 4s. That's still quite slow, as the profiler records around 4MB/second of data, so multi-GB traces seems ...
Profiling for Performance at PyCon.ca
Written by
on
in
Snaking.
The Pycon.ca schedule is up. My talk is at 11:20 on Saturday. It is a revised/extended/updated version of my PyCon 2009 talk on Profiling.
Quadratic Bezier Splines
Written by
on
in
Snaking.
So as part of my little Quake 3 BSP loader (twitch) I need to render Quadratic Bezier Spline patches. I want to do the whole thing from a VBO, so I'm doing the tessellation manually (I also wanted to do it to play). The basic rendering is now working, that is, I can render a ...
PyOpenGL 3.0.2 Released
Written by
on
in
Snaking.
PyOpenGL 3.0.2 (final, finally) has been released. The major changes since 3.0.1 (released in 2010!) are:
- OpenGL core support up to 4.3 level [1]
- OpenGL extension support from the current registry [1]
- Some missing FreeGLUT extensions added
- OpenGL.GL.framebufferobjects providing ARB/EXT alternates for framebuffer operations
- Experimental OSMesa (Offscreen Mesa) context (use the environment variable PYOPENGL_PLATFORM=osmesa)
Codebase ...
Pycon.ca Talk Submissions Due Monday!
Written by
on
in
Snaking.
If you're wanting to speak at Pycon.ca you need to get your proposals in this weekend. Don't delay.
[Update] Yeah, Mike, do that. I now have way too many talks I'd like to do:
- Modern OpenGL Eat Your Vertices Raw (submitted)
- Profiling for Performance (submitted, but very brief outline)
- Using GStreamer 1.0 (an HTML5 Video ...
PyOpenGL 3.0.2b2 is Out
Written by
on
in
Snaking.
If you have PyOpenGL dependent code, now would be the time to check that it runs against the latest beta. Assuming no show-stopping bugs are reported this will be the last beta before 3.0.2 final is released. Available in PyPI now.
Patch Django Management to allow pyc, so and pyd modules
Written by
on
in
Snaking.
This ...
A Day of Fun (QIII BSP File Loader)
Written by
on
in
Snaking.
While waiting for a server to get back online today I've been playing with a QIII map (BSP file) loader. Not much to it at the moment, it "parses" the whole file, but the rendering isn't particularly useful.
The loader uses numpy mmap'd files and typed views onto those to do the interpretation of the ...