Skip to content

u/baz_a

In this archive from Jun 2020 to Jan 2026

41
posts
112
comments
68
media
3.2k
score
1 saved before deletion

Top posts

Top comments

If anyone interested, how it's done:

It takes this Simplex noise 2D implementation https://gist.github.com/patriciogonzalezvivo/670c22f3966e662d2f83#simplex-noise . To add granularity you should use octaves like here https://www.shadertoy.com/view/Msf3WH (I use 11 octaves, with non-linear coefficients instead of 0.5, 0.25, etc.). To randomize the noise I offset the noise by a random vector in the range (-50, -50) to (50, 50). I also wanted the shores to be smooth somewhere, so I added another layer of noise, "geo noise" and multiplied the coefficients of the finer grain octaves by it.

15 points

The video shows the difference between frame time measured by OS timer called in _process() and Godot Performance.TIME_PROCESS and FPS metrics. The latter two are interpolated between several frames, as I understand, and it makes it harder to understand what immediate actions cause freezes. Of course, it can be better understood by using the built-in profiler, but there are cases where this approach could also help.

Here is an asset store link https://godotengine.org/asset-library/asset/746 and github repo https://github.com/aleksandrbazhin/GdPerfMonitor

The second part of the video shows the game I am working on https://www.reddit.com/r/Sailing_west/ . In the video there are clearly visible drops on map update and even more drops caused by redrawing UI. The first drops are not shown by Performance.TIME_PROCESS or FPS at all, but may be important in some reaction based games, I guess. And the second tell us that it is not a good idea to make a lot of nested Container nodes recalculate the position of their children.

Overall it does not replace the profiler, but can act as first line when monitoring performance. Also, I am not sure if it is needed at all and the plotting is not optimized enough, but I find it convenient.

14 points

Subreddits

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.