Skip to content

u/InSight89

In this archive from Jul 2019 to Nov 2026

3
posts
72
comments
0
media
161
score

Either engine then?

Unity has built in AI but I haven't used it yet. I use Godot and Jetbrains Rider with Claude AI plugin (I code in C#). I also use Claude, ChatGPT and Gemini in the browser to help me with turning ideas into code template I can build upon as well as to help with debugging my code.

1 points

Reminds me of the making of Zelda BotW. When play testing they noticed players following a very linear path despite it being open world. To get the players to explore the open world more they introduced the towers which could be seen over vast distances. This greatly enhanced the open world experience because players now had to explore the open world to unlock towers and could do so randomly rather than linearly. Also helped by the fact that some towers required the player to be at a certain character level which you wouldn't know about until you reached the tower and failed to climb it.

2 points

Neither of those need to know how to build a game engine unless it's a requirement for a particular project and if it is, they can learn how to do it.

An engineer may have more knowledge on the subject assuming it was part of their engineering degree. But it's not a particularly difficult subject to research yourself for free. There's a huge amount of resources available.

But generally, you don't reinvent the wheel. There's plenty of game engines and frameworks available to use and 99% of the time they do everything you need to do.

5 points

Yes. Very.

Give these videos a watch.

https://youtu.be/qHQ470RHcbo?si=BzzE68vnZoUCuFFL

And

https://youtu.be/2ardiWXqdk8?si=YuGg008NPhDsX6d9

But honestly, you can't go wrong with Godot. You're not going to get Unreal like AAA quality games with it. But judging by your experience, you're a long way from that even if you did use Unreal. Start from the bottom and work your way up.

1 points

That's like asking "I wanna be a race car driver and I want to race formula 1 but I drive a Corolla".

Unfortunately, you're a bit out of luck. The closest you'll get is probably Unity. It's the industry standard for indie development. But don't expect to make anything that is high demanding. There's a huge number of tutorials you can follow to get you started.

3 points

Because it can be easy. It entirely depends on the complexity of the game. Making a simple pong game can take about an hour or less. Making a simple side scroller may take a couple hours. Making GTA 6 takes 10+ years with a team of of hundreds of people. As the complexity of the game increases so to does the time it takes to make it.

0 points

I'm not an expert. I think it really depends on the game.

If you want to create a simple small side scroller than feel free to run 4k textures everywhere with zero LOD, frustum culling or occlusion culling. You'll be fine unless you're developing for mobile or Switch. If you want to create a huge open world game, then it becomes extremely important.

Why don't we have dedicated hardware for this? Well, the CPU and GPU are really, really good at doing all this already.

1 points

I just said that any math more involved than basic arithmetics is done by the underlying C++ math library in Godot and not in the GDScript VM.

Which requires extern calls to the internal Godot API. This was the comparison I was trying to make originally because I didn't think C# did this, which I was correct in assuming.

But if you call a Godot API method from C#, it binds to the Godot C++ library and calls it.

Except it doesn't. Take a look for yourself. Create a C# project, open a C# script and just go into the Godot.Mathf static class and see for yourself. It doesn't use Godots internal math library. It uses the C# one System.Math and System.MathF.

don't know which project you're referring to.

Literally any Godot C# project.

2 points

Summing two numbers isn't number crunching.

I don't know what games or applications you are making but typical game development involves a lot more than "summing two numbers together".

It is, but in C# you have the option of using C# own libraries instead.

I just opened up a C# Godot project. Most of the math is done using CoreCLR. The Godot.Mathf library does a lot of calculations within C# itself with any extern calls going through the Math.CoreCLR and MathF.CoreCLR respectively. I cannot see any extern calls to Godots own C++ math API.

But if you use Godot's Vector3D.lenght from C#, you are using a language binding to call the underlying Godot C++ code.

Except you are not. Looking at it right now, it's done inside C#. No extern calls. I'm not sure where you are getting you're information from.

2 points

What numbers?

All numbers?

That's 90% of what the language does. You do some calculation and set the resulting data.

I feel like you are contradicting yourself. Calculations are a form of "number crunching".

Even something heavier like the length of a vector (that requires a square root calculation) is implemented in C++ by the VectorXD classes. GDScript isn't actually calculating the length of vectors.

I do not believe that is the case in C#. I'd honestly be surprised if it were as extern calls aren't cheap. It would be much faster to keep it in C#.

I can't even fathom a bullet hell that needs more than 1000 bullets, let alone 50k.

You don't need to "fathom" it. It's purely a benchmark example case.

2 points

It's not C# or GDScript that are making these sprites run around, it's C++. The script language is just calling C++ code and passing arguments.

The respective languages are responsible for crunching the numbers. They simply send the final result to Godot API. In which case, there is a huge difference between GDScript and C#.

Iterating through arrays in C# is significantly faster than iterating through arrays in GDScript. When you're dealing with tens, or hundreds, of thousand of entities there is going to be a notable difference in performance.

In C#, you can send that data to Godot in a single call using the rendering server. No need to call Godot API for each entity. This provides a noticeable performance uplift. I was curious to know if GDScript had something similar. I can't see it in the Godot documentation.

3 points

I spent a long time with Unity so I very much enjoy working with C#. GDScript for Godot is nice and definitely something beginners should look into. Especially given improved documentation and tutorial support.

You cna use both C# and GDScript in the same project. GDScript is like the Blueprints of Unreal. It can be used to create games. If you need something that is performance critical then you can look into doing just that portion in C#.

3 points

I'm not too familiar with GDScript. I assume it works similar to C# List.

The reason it's slow for large arrays is because when you remove an element it has to shift all the elements after it left. This way it can keep its order. If you don't care about the order of the array you can simply replace the element you want to remove with the last element in the array. This is called a swap back. Then you can delete the last element in the array that way there's no requirement to shift other elements. For example.

var array = new Array(); // Fill array array[indexToRemove] = array[lastIndexInArray]; array.RemoveAt(lastIndexInArray);

The above is not API accurate, just used as an example. This is significantly faster than removing random elements in an array. But it does not keep the order.

5 points

I'd really like to know how to program using C++ for Godot. However, the examples I've seen have been rather cumbersome. So much setup and prep work. I'd much prefer something that I can just open up and begin coding.

8 points

I find GDScript is very slow at iterating through arrays. And I use arrays quite a lot. C# has direct support for Godot and if you want to get even more performance you can use pointers and native arrays that bring it pretty close to the performance of C++.

For most things though I'd argue GDScript is perfectly fine.

3 points

I'm currently building my own ECS library. Building an ECS library is fairly easy. Optimising it can be tricky. Especially when implementing multithreading. But it's certainly fun to learn how it all works.

2 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.