Wow, I'm so stupid. It should be __VA_ARGS__ not VA_ARGS. But, weirdly, the compiler doesn't say a…
I was testing some macro in Godbolt and for some reason, if I call A() then the compiler said "too…
The code you posted looks very strange - why there is xmm0 operation in there at all? There should…
I'd like the search box back too. In the mean time have a look at this thread.
Thank you for replying! And, yeah, the CTRL + Space was the exact command I was looking for!
Classically you solve it by sorting your sprites on cpu, and then drawing them in back-to-front or…
C_Worm —
I looked at the wrong shader... But let's say you want an explosion sprite to take place over an e…
-1 and +1 values are right on the border of clipping. Use something that is between -1 and +1. For…
C_Worm —
Okay i see, but nothing happends when I change the Z value, all my tiles have z = 1.0f and my ship…
Put icon with integer as name in your rc: Then assign LoadIconA(GetModuleHandle(0), MAKEINTRESOURC…
I kinda figured out how to add an icon to my (Windows) executable by creating a .rc file in the co…
I think a search-bar in the forums would be useful. At least the ability to search forum post titl…
I wrote this: And then run using google's benchmark library. With clang -O2: With MSVC -O2: So pr…
Changing z coordinate like you do won't do "zoom in/out". All it will is to change "layer" where i…
C_Worm —
Hey! My engine is currently setup for 2D rendering and now I just wanted to add the 3D feature so …
Casey also uses custom 4coder build from his own 4coder forked source code - it is not the same as…
I tried to use __addcarry_u64 but most of the time the code is slower than the basic code I had. N…
Casey also uses custom 4coder build from his own 4coder forked source code - it is not the same as…
I don't know if Casey distributes it, you may want to ask on the Molly Rocket discord. If I rememb…
Hello, Is it possible to have the latest 4coder configuration that Casey uses? The one received in…
I feel completely stupid. I added those volatile when I was trying stuff in godbolt precisely to t…
That happens because you put math_u128_mul arguments with volatile type. Volatile means you are te…
I've implemented some pcg variants in C to include in my codebase. I've got a 64bit state generati…
The entities are in a pool array (not sure the right terminology - fixed sized arrays joined by a …
If you have a static array of entities that were allocated at the start then how can the memory us…
Probably should have given more info on that number before throwing it out there 😅. I’ll have…
Thanks, will check those out! I'm experimenting with procedurally generating a level based on an i…
Just curious, how many active entities do you have? How large is a single entity? Also, does anyon…