We are currently in the process of converting the website to the new design. Some pages, like this one, are still broken. We appreciate your patience.
longtran2904
Wow, I'm so stupid. It should be __VA_ARGS__ not VA_ARGS. But, weirdly, the compiler doesn't say a…
»
longtran2904
I was testing some macro in Godbolt and for some reason, if I call A() then the compiler said "too…
»
C_Worm
Okay Thanks!
»
Simon Anciaux
The code you posted looks very strange - why there is xmm0 operation in there at all? There should…
»
Simon Anciaux
I'd like the search box back too. In the mean time have a look at this thread.
»
Evan Butterfield
Thank you for replying! And, yeah, the CTRL + Space was the exact command I was looking for!
»
Mārtiņš Možeiko
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…
»
Mārtiņš Možeiko
-1 and +1 values are right on the border of clipping. Use something that is between -1 and +1. For…
»
Opoiregwfetags
Thanks a lot Martins!
»
C_Worm
Okay i see, but nothing happends when I change the Z value, all my tiles have z = 1.0f and my ship…
»
Mārtiņš Možeiko
Put icon with integer as name in your rc: Then assign LoadIconA(GetModuleHandle(0), MAKEINTRESOURC…
»
Opoiregwfetags
I kinda figured out how to add an icon to my (Windows) executable by creating a .rc file in the co…
»
Opoiregwfetags
I think a search-bar in the forums would be useful. At least the ability to search forum post titl…
»
Mārtiņš Možeiko
I wrote this: And then run using google's benchmark library. With clang -O2: With MSVC -O2: So pr…
»
Mārtiņš Možeiko
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 …
»
longtran2904
Casey also uses custom 4coder build from his own 4coder forked source code - it is not the same as…
»
Simon Anciaux
I tried to use __addcarry_u64 but most of the time the code is slower than the basic code I had. N…
»
Mārtiņš Možeiko
Casey also uses custom 4coder build from his own 4coder forked source code - it is not the same as…
»
Simon Anciaux
I don't know if Casey distributes it, you may want to ask on the Molly Rocket discord. If I rememb…
»
khealer
Hello, Is it possible to have the latest 4coder configuration that Casey uses? The one received in…
»
Simon Anciaux
I feel completely stupid. I added those volatile when I was trying stuff in godbolt precisely to t…
»
Mārtiņš Možeiko
That happens because you put math_u128_mul arguments with volatile type. Volatile means you are te…
»
Simon Anciaux
I've implemented some pcg variants in C to include in my codebase. I've got a 64bit state generati…
»
Oliver Marsh
The entities are in a pool array (not sure the right terminology - fixed sized arrays joined by a …
»
longtran2904
If you have a static array of entities that were allocated at the start then how can the memory us…
»
Oliver Marsh
Probably should have given more info on that number before throwing it out there 😅. I’ll have…
»
longtran2904
Thanks, will check those out! I'm experimenting with procedurally generating a level based on an i…
»
longtran2904
Just curious, how many active entities do you have? How large is a single entity? Also, does anyon…
»