Python Pygame application optimization

I have written a stand alone pygame application that connects via udp to a master machine.

This master machine provides network packages with variables and their values via udp, and the application represents them as instruments in the client machine.

Each instrument has a set of 2d textures associated with it and a range of values and movement, can be rotation, translation (x and y) and also could display text, hide/show the texture, etc.

The application loads the textures and variable value and accordingly rotates/moves it. then it keeps monitoring the variables and adjusting the texture rotation/position based on the defined tables. The instruments are defined in an INI file, that at the moment is quite large.

The goal is for this application to have good performance. At the moment ive accomplish about 20fps with some optimisations, but the more instruments i add, its getting slower and slower.

Ideally i would want 60 fps for this.

from my experimentation, the most costly part is not the network layer, but actually rotating the images with pygame.

Since this happens many times per second for hundreds of images, its getting a toll on performance.

Ive tested by 'pre calculating' the rotations from 1-360 degrees, and this approach gave a huge increase in performance, but the memory consumption was way to big due to having in memory 360 copies of the same image , times hundreds of images. getting out of memory with 8gb of ram.

Im looking for someone to look at my code, and optimise this application somehow to be able to achieve good performance, 60 fps or more, maintaining the same model of textures and ini file with the definitions.

The code ideally should be on python, using pygame although i may consider migrating to something like opengl if it gave performance gains.

You can look at the code here:

[login to view URL]

the branch test should automatically generate random values so you can see some movement and fps results without the master machine or network setup.

Skills: Python

See more: python multithreaded application, excel application optimization, python google application engine, python systray application, google engine python top application, python tray application, mobile application optimization, python facebook application developer freelance, facebook python desktop application, convert python web application html, python mobile application, python sqlite application, python mobile application development, report python web application, python database application, python non linear optimization, python web application, c=a*b should be cij= 900*(double)(i+1)/(double) (j+1), write a simple android sales application (project part 1, where do i get python programming application for raspberry pi

About the Employer:
( 0 reviews ) Argentina

Project ID: #20353752

14 freelancers are bidding on average €478 for this job


Hello. It sounds interesting! :) I’m fine with optimizations especially in such interesting case! I think I may help you! Let’s talk details and do the business!

€700 EUR in 3 days
(43 Reviews)

Hi, very nice to meet you ! I've great experience in Python. When you read my profile page, you can find that I'm a python expert. I've 10+ years of experience in Python especially with Django and Flask for web develop More

€500 EUR in 7 days
(17 Reviews)

Hi. Glad to meet you. I'm Web developer specializing in web scraping crawling and indexing web pages. Skills: python, scrapy, selenium, requests, beautifulsoup, mechanize, lxml, urllib2, automation, bots, spiders I wor More

€500 EUR in 7 days
(16 Reviews)

Hello, I read the description of your project. I saw your description carefully, and I have experiences of a similar project. As I am a python and pygame developer, I am sure I can help you If you trust and award me More

€500 EUR in 7 days
(4 Reviews)

✫✫✫ Dear Hiring Manager ✫✫✫ Wish you a very good day!!! I am a senior Web/App developer who has a good knowledge of Python, Java, javascript, PHP, Codeigniter, C++, C#, Qt and etc. So interested in your project. As a s More

€300 EUR in 7 days
(2 Reviews)

Yes. Dear Client. I have read your description with care. I can. I have rich experience in python. Your project is very fit to my skills. If you would award it to me, I am sure that I can complete this project with Hig More

€500 EUR in 7 days
(2 Reviews)

[login to view URL] [login to view URL] [login to view URL] [login to view URL] [login to view URL] [login to view URL] [login to view URL] http://mtgre More

€400 EUR in 12 days
(1 Review)

Hello I am a python expert, especially familiar with pygame. I ever developed game using pygame module before. if necessary, I can improve the performance of the existing game. Please contact to me. You had better sele More

€300 EUR in 7 days
(1 Review)

Dear Sir, You recently advertised on this site regarding your project requirement, after reading the job description I am confident that I would be a perfect fit for this position as my experience and abilities precis More

€722 EUR in 8 days
(0 Reviews)

Hi, Thanks for posting !!! I have 14 years of experience in Website and Mobile apps. I have checked the requirement and understand. I have created App SIMILAR to Python Pygame application optimization do y More

€300 EUR in 3 days
(0 Reviews)

I can assist you to optimize the game further. I'm Highly interested with your project and I'm ready to start right now. My completion rate is always 100% that I STRICTLY BITE ONLY WHICH I CAN CHEW. Please message m More

€300 EUR in 7 days
(2 Reviews)

Hello i hope you are fine. i have expertise in website development and customization related work. i can help you to make Python Pygame application optimization So lets discuss in details via private chat and deal More

€420 EUR in 14 days
(0 Reviews)

Hi, I have gone through your project details. I fit your project requirement and can do as per your requirement. I am new on [login to view URL], but I have 8+ years highly Experience in: Python | Django | Django Rest Framew More

€750 EUR in 7 days
(0 Reviews)

Hello I read your job post and very interested in your job I am a full stack developer have 7+years experience with web development Kindly review my profile I can start immediately and comfortable with your timezone More

€500 EUR in 7 days
(1 Review)