[Tutor] Game lag

Nate Lastname defensoft at gmail.com
Thu Jan 5 17:08:46 CET 2012


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> wrote:

> On Thu, Jan 5, 2012 at 3:56 PM, Nate Lastname <defensoft at gmail.com> wrote:
> > 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:
>
> http://docs.python.org/library/profile.html
>
> HTH,
> Hugo
>



-- 
My Blog - Defenestration Coding

http://defenestrationcoding.wordpress.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20120105/3ff65be9/attachment.html>


More information about the Tutor mailing list