[Tutor] Game lag
japhy at pearachute.com
Fri Jan 6 06:08:06 CET 2012
If you made an effort to strip out parts of your code, it would
probably show you where the bottlenecks are.
You say that the large map is not the problem, but do you really know?
On Jan 5, 2012, at 10:08 AM, Nate Lastname <defensoft at gmail.com> wrote:
> Thanks for the profilers - never had hear of 'em. Also, no, I cannot
> strip out unnecessary parts, 'cuz I don't know what part is slowing
> it down. Thanks a lot, though Hugo.
> On Thu, Jan 5, 2012 at 11:02 AM, Hugo Arts <hugo.yoshi at gmail.com>
> On Thu, Jan 5, 2012 at 3:56 PM, Nate Lastname <defensoft at gmail.com>
> > Hello all,
> > The attached zip file contains a file called 'cameramovement.py'.
> As you
> > can see, this file is extremely laggy. After searching through my
> code, I
> > can't find anything that is slowing it down. Could someone help
> me out? It
> > takes a while to load due to a large map. This is not the problem.
> > Thanks,
> > The Defenestrator
> > P.S. Yes, I am new here. Hello, all!
> 1) although posting here is a good idea, you're gonna be better off
> asking the pygame mailing list about this as well, they're the experts
> 2) that's a lot of code for me to read all in my spare time man, isn't
> there any way you can simplify it or strip out unnecessary parts?
> 3) did you profile it? Do this! Now! rather than guess where your code
> is slow, this will tell you exactly. Use cProfile:
> My Blog - Defenestration Coding
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tutor