HNHacker News
TopNewBestAskShowJobs

cepacked

9 karma · joined December 17, 2023

submissionscomments
cepacked··on I'm making a game engine based on dynamic signed distance fields (SDFs) [video]
I use SDFs on my render engine to render text. It allows me to debug values inside shaders. (I can print value of an uniform, texture value etc.)

(It's a combination of line segments for each letter and digit)

cepacked··on ECS, Finally
In a context where you have thousands of entities, it's very rare that you'll loop all over them from 0 to N. In such context entities are always partitioned in space. You interact with one entity and you update the entities around it. For which you'll query the spatial partition to get list of entities around, and they won't be contigious in memory.

You may have one loop to update all entities but that's it. And will you even update all of them ? What about the ones that are not visible ? Maybe you want to update only the visible ones .. in that case you query the partition to get the ones visible around your camera

So practically you never query the ecs registry to loop over all of them

cepacked··on The C++20 Naughty and Nice List for Game Devs
Lately I've been under the extreme temptation to rewrite my game engine in Rust.

I crave the ergonomy of rust development. I use Rust at my job (not game dev) and it sucks to switch back to C++ for my side projects

But I resist for the moment, because I fear it won't be easy as I predict and it would delay my projects.

I already started using this list of features and refactored most of my code for c++20. I hope C++ will continue on that path and catch up Rust. But there are still so many things missing

In the meantime I refactor little by little my C++ projects to be "rust ready": hierchical ownership, data oriented with minimalist oop. So the day I can't resist no more I will be able to quickly rewrite it in Rust

cepacked··on GTA 5 source code leaks online
If it's a closed source release, how could anyone prove which code/framework they reused ?
cepacked··on GTA 5 source code leaks online
Does this mean more and more developers could easily make GTA like games now that they have access to this source code ?