I tried but nothing happens.. Have to talk to the WingIDE guys. Good
hint tough, tnx!
Am 28.10.2006 um 03:37 schrieb Ryan Charpentier:
Just use the Execute Current File option in the debug menu.
Just use the Execute Current File option in the debug menu.
Agree, its only visible in games/demos that requires permanent graphic refreshing. In my case WingIDE could cause that problem. I have to try it out once from shell, "just" have to define the python path. :/Glad, Im not the only one. ;)Am 28.10.2006 um 02:16 schrieb Ryan Charpentier:On 10/27/06, Fa
On 10/27/06, Farai Aschwanden <[EMAIL PROTECTED]> wrote:
Erm... now you mention it... Shame on me. I really work with WingIDEand never came to the conclusion this could be the lag source. :o Ihave to try out.. tnx!!!Farai, I came on this board and complained about a lag every 3 seconds just like yo
Erm... now you mention it... Shame on me. I really work with WingIDE
and never came to the conclusion this could be the lag source. :o I
have to try out.. tnx!!!
Am 27.10.2006 um 04:17 schrieb Ryan Charpentier:
I have this exact problem with lag when I run a pygame in a
debugger like Wing
Luke Paireepinart wrote:
Now just add little splashes at the bottom, a rain sound effect, and
randomly change the background to white for a few frames (to simulate
lightning)
and you can sell it as a screensaver!
I'm excited :D
Glad you find it entertaining! :-D
Uh, BTW, that URL was incor
Kamilche wrote:
Kai Kuehne wrote:
Looks similar to http://www.scriptedfun.com/pygame-starfield-rain/
but it's cool.
Yep, that's the site that inspired me. Mine is a different solution to
the same problem, but the raindrops look similar, that's true. If you
look closely, his are leaving trai
Kai Kuehne wrote:
Looks similar to http://www.scriptedfun.com/pygame-starfield-rain/
but it's cool.
Yep, that's the site that inspired me. Mine is a different solution to
the same problem, but the raindrops look similar, that's true. If you
look closely, his are leaving trails behind - mine
Looks similar to http://www.scriptedfun.com/pygame-starfield-rain/
but it's cool.
Greetings
Kai
I have this exact problem with lag when I run a pygame in a debugger like Wing IDE.
Farai Aschwanden wrote:
I experienced a tiny lag like every 3 seconds.
There's a chance it's due to Python's cyclic garbage
collector. You could try disabling that and see if
the pauses go away.
(If it does, you'd better then check whether you're
gobbling up increasing amounts of memory and t
Farai Aschwanden wrote:
Could only check the rain.py that is pretty to look at. The ground touch
of the rain is really well done! Crashes also on my machine after about
5 seconds.
Unfortunately I cant start snow.py, Im not psyco enough. ;) Should try
it out once, tough they say its not stable
Could only check the rain.py that is pretty to look at. The ground
touch of the rain is really well done! Crashes also on my machine
after about 5 seconds.
Unfortunately I cant start snow.py, Im not psyco enough. ;) Should
try it out once, tough they say its not stable yet.
Am 27.10.2006
I always forget to attach files - here are the rain and snow I just talked about :P
import random
import pygame
import psyco
psyco.full()
screen = pygame.display.set_mode([320,240])
colmap = [[0 for x in range(320)] for y in range(240)]
col_width = len(colmap[0])
col_height = len(colmap)
lowestfl
Very nice effect! While people are posting effects, I'll whip out my old snow and rain tests.Here is the snow - When I first coded it it would eventually form a triangle, now it bunches up on the left side of the screen. I never figured out where the error was (but I didn't spend more than an hou
DANG! 2.5k fps, guys you really let me stand in the rain. :)
Am 26.10.2006 um 22:38 schrieb Luke Paireepinart:
Farai said:
>Good point! I got around 200-300 fps and I still realise the lag,
tough its a bit less w/o fps output. Guess its better to test such
games/demos on a faster machi
Farai said:
>Good point! I got around 200-300 fps and I still realise the lag,
tough its a bit less w/o fps output. Guess its better to test such
games/demos on a faster machine. 1200 FPS... *sigh*.
Hmm, I'm getting upwards of 2500 fps, I was wondering if that means the
rain was dropping
I didnt had a doubt on the code when I saw the lag first time, cause
I already saw it in other games. Its no biggy at all and gives me a
good feeling that my whenever coming game is well optimized. ;)
I still got that lag uncommenting the line. I already checked the
background activities an
what you describe sounds like what happens when a game hogs 100% of
the CPU, but some background process needs to periodically do
something (like say every 3 seconds)
Looking at the code, it doesn't have anything in it that will yield
the CPU. The solution is usually to sleep if you are getting a
Good point! I got around 200-300 fps and I still realise the lag,
tough its a bit less w/o fps output. Guess its better to test such
games/demos on a faster machine. 1200 FPS... *sigh*.
Am 26.10.2006 um 21:24 schrieb Kamilche:
Farai Aschwanden wrote:
Nice looking rain and proper code!
No lag here, although I'm on XP. I'm getting like 1200 FPS though, so
if there were such a periodic slowdown I probably wouldn't notice.
-Jasper
Farai Aschwanden wrote:
Nice looking rain and proper code! I experienced a tiny lag like
every 3 seconds. I experienced that also in other games/d
Farai Aschwanden wrote:
Nice looking rain and proper code! I experienced a tiny lag like every 3
seconds. I experienced that also in other games/demos, couldnt find out
why. Did other ppl also experienced this and/or knew why or is it only
on my Mac?
Greetings
Farai
Thanks!
It doesn't lag
Nice looking rain and proper code! I experienced a tiny lag like
every 3 seconds. I experienced that also in other games/demos,
couldnt find out why. Did other ppl also experienced this and/or knew
why or is it only on my Mac?
Greetings
Farai
Am 26.10.2006 um 20:40 schrieb Kamilche:
I
I was inspired to create a rain generator after seeing someone else's on
the Internet today, and thought I'd post it here:
[code]
import pygame
import random
import time
SCREENSIZE = 640, 480
class Rain(object):
' Rain generator'
drops = []
height = 160
speed = 1
color =
24 matches
Mail list logo