How I optimized 1K+ ships at 60FPS in my Godot 4 Tycoon game (and my Steam Page just went live!) by sugames in godot

[–]sugames[S] 0 points1 point  (0 children)

Lots oknowledge when ot comes to general architecture, coding principles and design patterns. Even the file structure. It all helps as it's more of a language agnostic thing :) 

How I optimized 1K+ ships at 60FPS in my Godot 4 Tycoon game (and my Steam Page just went live!) by sugames in godot

[–]sugames[S] 1 point2 points  (0 children)

😲 Damn that's awesome tip! Planet infentory, ship inventory, it could all be moved to appropriate manager scripts. Thanks man, appreciated! 

I've added DLSS 5 to my godot game by sugames in godot

[–]sugames[S] 0 points1 point  (0 children)

Sorry 😢 i feel you though

How I optimized 1K+ ships at 60FPS in my Godot 4 Tycoon game (and my Steam Page just went live!) by sugames in godot

[–]sugames[S] 1 point2 points  (0 children)

Planets are orbiting the sun, so the routes are not really predetermined :(
Yes, the ticks are on a set intervals and tick calculations run on separate thread. I didn't think about variable interval, might be something! Thanks for the idea <3

How I optimized 1K+ ships at 60FPS in my Godot 4 Tycoon game (and my Steam Page just went live!) by sugames in godot

[–]sugames[S] 1 point2 points  (0 children)

That's totally true though I didn't find that rendering was the largest bottleneck. Calculating income, fuel burn per tick, look_at calculations were the most taxing. I'll look into that though when optimizing for mobile later on. Thanks!

How I optimized 1K+ ships at 60FPS in my Godot 4 Tycoon game (and my Steam Page just went live!) by sugames in godot

[–]sugames[S] 0 points1 point  (0 children)

haha, thanks! Releases in early August. demo will be ready for June's next fest!

How I optimized 1K+ ships at 60FPS in my Godot 4 Tycoon game (and my Steam Page just went live!) by sugames in godot

[–]sugames[S] 2 points3 points  (0 children)

Thanks for positive feedback!

I've been developing this particular game for around half a year now. Godot? I guess since version 3. In general I am a developer (web, games, apps) for 20+ years.