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.

Taidot: Python

Näytä lisää: 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

Tietoa työnantajasta:
( 0 arvostelua ) Argentina

Projektin tunnus: #20353752

14 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön


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 3 päivässä
(43 arvostelua)

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 Lisää

€500 EUR 7 päivässä
(17 arvostelua)

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 Lisää

€500 EUR 7 päivässä
(16 arvostelua)

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 Lisää

€500 EUR 7 päivässä
(4 arvostelua)

✫✫✫ 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 Lisää

€300 EUR 7 päivässä
(2 arvostelua)

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 Lisää

€500 EUR 7 päivässä
(2 arvostelua)

[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 Lisää

€400 EUR 12 päivässä
(1 arvostelu)

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 Lisää

€300 EUR 7 päivässä
(1 arvostelu)

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 Lisää

€722 EUR 8 päivässä
(0 arvostelua)

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 Lisää

€300 EUR 3 päivässä
(0 arvostelua)

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 Lisää

€300 EUR 7 päivässä
(2 arvostelua)

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 Lisää

€420 EUR 14 päivässä
(0 arvostelua)

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 Lisää

€750 EUR 7 päivässä
(0 arvostelua)

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 Lisää

€500 EUR 7 päivässä
(1 arvostelu)