Optimizing Questions

3

I was talking to my teammate about why Windows Task Manager shows GPU usage of 1% when running Godot 4 in a laptop with NVidia dedicated GPU. That seemed to be great in performance side, considering h...
Cornuted asked 21/2 at 10:22

13

I pinpointed this particular frame when clicking on a scene transitioning button on my main menu which apparently gets stuck for a whopping 13,7 seconds.....? I know the issue is the scene I'm transi...
Amarette asked 10/2 at 18:40

3

I have a problem which I'm pretty sure is a memory leak which I have no idea how to fix, whenever I run the project my file explorer slows down and doesn't recover until I restart my computer. I woul...
Plasmodium asked 20/1 at 2:8

15

Solved

I, like many others am terribly excited for the upcoming 4.0 release so I've been obviously trying all the alpha versions coming out (these tests were done on RC1), but I seem to get really low fps on...
Bugbane asked 17/2, 2023 at 16:32

2

I used to export 3D models to gltf file for usage within Godot engine. Since Godot exporter stopped being updated I had to create some Python scripts to get file ready for Godot. I realized that ble...
Phyliciaphylis asked 8/8, 2023 at 17:48

8

In other languages you can do var foo = a[0] | b which sets foo to a[0] unless it evaluates as false (undefined, null, false etc), then it sets it to b. It looks like in godot you have to do var foo ...
Dunno asked 27/11, 2023 at 14:57

2

Solved

I'm currently working on Godot 3.5 for web games, and due to compatibility issues in Godot 4, I'm sticking with Godot 3, which only supports CPU lightmaps. As I'm about to upgrade my CPU to enhance Li...
Boling asked 25/11, 2023 at 4:11

16

In this thread we were talking the other day about the performance of sin() calculations vs. using curves so I made a quick & dirty benchmark to compare them. Simple calculations Lets call these...
Kelley asked 25/11, 2023 at 13:40

5

I'm creating a bullet-hell type of game and I am trying to optimize the basic enemies at most cause those will be present by the hundreds in the screen. I had noticed that changing the animation fro...
Woolridge asked 20/11, 2023 at 14:12

4

I'm trying to optimise my game but I don't really understand the profiler. In this image Frame Time is 136ms but even if I add up all the times beneath the result is much much lower, so what does Fra...
Noman asked 12/11, 2023 at 1:35

4

Hi everyone! I'm pretty new to Godot (migrating from Unity). My game is comprised of mostly Sprite3Ds and is generally pretty simple. However, I'm only getting 30-35 FPS and my game looks choppy, wher...
Forepaw asked 16/11, 2023 at 0:9

5

Hello everyone! I'm in the midst of developing a low-poly 3D MMORPG ⚔️ and have successfully tackled various elements like networking, multiplayer functionality, and database management. However, I'v...
Agronomy asked 9/11, 2023 at 18:34

32

Solved

So, I've read various tutorials that talk about Objects, I understand they are more lightweight then Nodes, however, I assume you can't/don't want to use them for everything. My specific use case wh...
Messieurs asked 17/10, 2023 at 10:41

16

I'm running some performance tests to understand the purpose of running physics in a separate thread. I have a benchmark scene that creates objects non-stop, in addition to that I have a system to mea...
Woermer asked 3/10, 2023 at 5:36

5

I recently wondered what the best way to return multiple values from a function would be. There are proposals but GDScript doesn't support this yet so we have to improvise and out of curiosity I wante...
Drysalter asked 30/9, 2023 at 9:9

19

When running the same export several times, it can indeed open several times, but each instance runs a full copy of the engine. How to have a single base engine that serves as core to every instance ...
Holp asked 25/8, 2023 at 22:47

1

I want to see if my first person controller (with headbobbing, footstep sounds, movement smoothing and mouse smoothing) could be improved, fixed or cleaned up in any way or if it is okay as it is now....
Bingaman asked 26/9, 2023 at 2:35

8

So, is there a way to test efficiency of your code, or is it just over time you kind of learn what is more better for CPU and RAM usage and the likes. An example I have two ways I have written this c...
Tradesman asked 17/9, 2023 at 17:54

3

After following this tutorial: And getting a scene similar to the on in the video's description, I noticed that at a certain point, the lights stopped lighting up the tilemaps and/or sprites. I te...
Masha asked 11/9, 2023 at 20:51

6

I've watched GDC talks now and then for probably 10 years at this point. Most of them, at some point, remind the audience "use symbols not strings." Right, makes sense. String comparisons are expensiv...
Algorithm asked 9/4, 2023 at 15:28

2

Welcome back, forums! Just a question: implemented mobile controls in a build, on a canvaslayer with all the button set to Touch Screen Only visibility in the editor and any time I launch them in the...
Recondition asked 10/8, 2023 at 19:2

3

Hello! This is a question about the typing behavior and safe line casting (that little number on left side of every single line of any script in godot). I know isn't needed and code can work anyway w...
Flaunt asked 2/8, 2023 at 4:20

4

How did you achieve optimization of such a large number of autonomous agents, over 500 units? I am trying to create a large number of rival cars, but the FPS drops already occur at 60 units. This is ...
Issacissachar asked 12/7, 2023 at 16:19

7

Solved

So I have an data structure I am trying to convert to gdscript, its searchable by key:String, but can be ordered by a int and a float value. This is whay I got so far : var arrayValues = [] # [floatv...
Doings asked 28/6, 2023 at 3:18

3

In Godot 4, Animated Sprite got much more flexible than in 3, from what I have tried. Both methods work well for sprite sheets, albeit a bit harder to template for Animated Sprite. But still, in Godot...
Stolid asked 23/6, 2023 at 18:31

© 2022 - 2024 — McMap. All rights reserved.