Multithreading is a must #24

Open
opened 2025-02-12 15:14:18 +00:00 by batmacumba · 0 comments
Owner

I created a AI intense mission for multiplayer event. It has 216 AI aircrafts. To test what AI do, I was running dedicated server on my PC. To observer whats going on in a mission and how AI behaive I connected as a client from SAME PC. At some point I realized the my game is runngin butter smooth with average 117 FPS, what I never experienced in CloD in single player campaigns. So, I did a quick test. I made a copy of multiplayer mission to single player missions folder. Assigned player to one of aircrafts and started the this single player mission. You know what? All magic gone, performance was a total crap, with average 26 FPS!

Funny thing, that all the game logic, AI processing and graphics rendering happening on same PC in both cases. But only one, where AI processing and game world logic running in separate application, gains significant performance boost!

I think TFS should move all internal game logic and AI processing to separate threads, finally making game multithreaded. There are definitely some benefits in getting extra FPS in single player campaigns.

I created a AI intense mission for multiplayer event. It has 216 AI aircrafts. To test what AI do, I was running dedicated server on my PC. To observer whats going on in a mission and how AI behaive I connected as a client from SAME PC. At some point I realized the my game is runngin butter smooth with average 117 FPS, what I never experienced in CloD in single player campaigns. So, I did a quick test. I made a copy of multiplayer mission to single player missions folder. Assigned player to one of aircrafts and started the this single player mission. You know what? All magic gone, performance was a total crap, with average 26 FPS! Funny thing, that all the game logic, AI processing and graphics rendering happening on same PC in both cases. But only one, where AI processing and game world logic running in separate application, gains significant performance boost! I think TFS should move all internal game logic and AI processing to separate threads, finally making game multithreaded. There are definitely some benefits in getting extra FPS in single player campaigns.
batmacumba added the
enhancement
label 2025-02-12 15:15:43 +00:00
batmacumba added this to the (deleted) project 2025-02-12 17:19:04 +00:00
batmacumba added this to the 5.04X project 2025-02-12 17:19:50 +00:00
batmacumba moved this to To Do in 5.04X on 2025-02-12 17:26:47 +00:00
batmacumba moved this to To Do in 5.04X on 2025-02-12 17:26:53 +00:00
Sign in to join this conversation.
No Milestone
No project 5.04X
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: tfs/IL-2-Sturmovik-Cliffs-of-Dover#24
No description provided.