openairlinetycoon / OpenATDeluxe

The open source remake of Airline Tycoon Deluxe
GNU General Public License v3.0
104 stars 13 forks source link

Increase loading performance #6

Open WizzardMaker opened 5 years ago

WizzardMaker commented 5 years ago

Currently loading a room means blocking the main thread and stopping everything. That is not really desired behavior.

We should test the performance of multithreaded loading and the InteractiveLoader of Godot. Or maybe we can just load every room into the game to prevent any mid session loading

Serphentas commented 5 years ago

(Quick parenthesis: I was unavailable these days so not many contributions, sorry)

Good practise is to load content when needed, but given the game's rather small size it could possibly be done upon startup. Do you have some RAM figures ?

If this approach is not feasible, I could look into multi-threaded ops.

WizzardMaker commented 5 years ago

(No problem, there is no rush! We all have a life)

The Airport and some of the rooms use according to the Godot debugger only 38MB, but thats with only 3 out of ca. 24 rooms, though the biggest RAM eater is the airport. I'm planning on adding all the rooms later this day to get the final amount.

WizzardMaker commented 5 years ago

Just for reference, the current game has a RAM footprint of around 100.83 MB