Re: [pygame] Is pygame event thread save? or I need use lock to post user event in thread?

2008-11-24 Thread Peter Shinners
halida wrote: I want to use multi-thread in pygame game loop, with main draw and display.update thread, event process thread, game update thread. and I will use event.post(drawEvent) to tell main thread to update screen. do I need use threading.Lock() to lock it? or just let it go? it is too

Re: [pygame] Pygame CTypes

2008-11-24 Thread Peter Shinners
pymike wrote: I still think it'd be cool to have a simple pure-python SDL wrapper. I tried a few times but I kept blowing up my computer ;-( On Mon, Nov 17, 2008 at 9:42 AM, Luke Paireepinart [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: The SoC student who wrote Pygame Ctypes is

Re: [pygame] Pygame CTypes

2008-11-24 Thread pymike
I've looked at it before. The ctypes stuff was a bit over my head, but yeah it was very clean looking. I got an SDL window pop up and an image draw to it, but I wasn't returning sdl_surfaces right (or something) so I got some pretty bad crashes LOL The event stuff is pretty hard to do too :S For

Re: [pygame] Window specific changes to Pygame config.py

2008-11-24 Thread Lenard Lindstrom
René Dudfield wrote: nice one :) Thanks -- Lenard Lindstrom [EMAIL PROTECTED]

Re: [pygame] Is pygame event thread save? or I need use lock to post user event in thread?

2008-11-24 Thread René Dudfield
hi, Posting an event is *not* really thread-good. It will work, but will start raising exceptions if you do it from multiple threads. You can make a post function that retries on exceptions, but then you may get worse performance. Use the fastevent module instead if you want to use threads.

Re: [pygame] Window specific changes to Pygame config.py

2008-11-24 Thread Lenard Lindstrom
Lenard Lindstrom wrote: René Dudfield wrote: nice one :) Thanks I see Marcus wasn't kidding when he said he has reworked the build process for Pygame Reloaded. So I will refrain from making further changes to Pygame's configure and build system. It does what I need, work with the new

[pygame] Ludumdare 48 hour, from scratch, game making comp. December 5th-7th weekend.

2008-11-24 Thread René Dudfield
Hello, Ludum Dare #13 is coming soon!! December 5th-7th weekend. Ludum Dare is a regular community driven game development competition. The goal is, given a theme and 48 hours, to develop a game from scratch. Ludum Dare aims to encourage game design experimentation, and provide a platform to