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 <defens...@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.yo...@gmail.com> wrote: On Thu, Jan 5, 2012 at 3:56 PM, Nate Lastname <defens...@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/

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to