Skip to content

u/stuffsnout

In this archive from Feb 2018 to Dec 2025

27
posts
141
comments
18
media
742
score
3 saved before deletion

Thoughts on godot 3.1 compile

  • A lot more cc warning flags are set, but I had some sloppy code when it comes to initialization ordering.
  • The gdscript warnings are a bit over-eager when it comes to unused variables or unused function parameters.

With reduz wanting to do vulkan renderer, I'm hoping we can get a more abstract visual server for c++ folks. Godot's biggest issue is still how far behind it is in terms of 3d performance. I've had to completely abandon the node framework other than for debugging since it just simply too expensive for heavy cpu games.

4 points

yea I'm inspired by it. I think my crowd simulation is more complicated than theirs but I'm following the same principles. If I cut out the aiming system I easily get +10,000 perf. about 20 ms simulation for 10,000.

1 points

I can probably target lower specs with optimized task scheduling. you'll notice with total war games that while the game is 60 fps, the per-agent logic is more like 2 fps. I'm doing 10 fps agent logic.

I'm not using godot's node tree at all really other than for configuration + effects. That whole demo probably has 30 nodes in the tree. Godot needs to really consider having a entity component system that stands alongside the node tree but still takes advantage of the server and drivers.

2 points

and I'm using an entity component system (Entt) which is a shared library independent of Godot to simulate the agents. I'm really only using godot for managing the art assets at the moment. My strategy has been to have the core game code exist outside any game engine, and then the engine is just responsible for the visual and audio. That way if godot can't handle the terrain performance-wise, I'll theoretically be able to switch to unreal or lumberyard worst-case scenario.

1 points

No custom physics ray functions. I had to optimize by tossing out collision shapes and using only aabb box collisions with my own broadphase structure. Use custom map terrain physics as well.

3 points

but I had to completely abandon bullet physics and implement my own physics for the projectile / terrain ray-casting. Also had to implement my own culling. About the only thing I'm using godot for is visual and audio now. Hopefully the graphics pipeline can be made more robust and flexible enough to handle the performance requirements of large terrains and foliage requirements.

12 points

there's some stuttering while agents are aiming which is pretty simple to spread as a distributed task, but otherwise 60 fps for 5,000 agents. I'd like to have 10,000 for single-player and like 4,000 for multiplayer.

9 points

i was gonna bring this up in a different post, but this works better. When godot 3.1 comes out and gets a lot of newbie attention, we as a community should be pushing for more patreon funders heavily. The amount currently at $7,000+ has been pretty static currently, and I think we all benefit the more full-time contributors we can support. I think most people associate open-source with "free" and that it doesn't make sense to "pay" for open-source product. A better way to think of it is, "I'm paying on patreon for $15/month for active support of an engine that I communally own and staking my game on". I think the more new users hear this encouragement the more we can benefit.

5 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.