Sign in

Mārtiņš Možeiko

@martins.ninja
226 followers 155 following 8 posts

Epic Games / RAD Game Tools

PostsRepliesMedia
Mārtiņš Možeiko @martins.ninja · 02/09/2026
Clang has __attribute__((nodebug)) which will completely suppress debug info for function - so not exactly same thing, but for simple wrapper functions may be ok. There's gnu::artificial, but that's for different functionality - I believe it works only works when code is actually inlined.
100
Mārtiņš Možeiko @martins.ninja · 02/09/2026
You can also mark up C++ functions with __declspec(non_user_code) for MSVC. Then debugger will skip stepping into such functions (does not work on C functions).
140
Mārtiņš Možeiko @martins.ninja · 24/06/2026
Thanks, updated with the fix.
000
Mārtiņš Možeiko @martins.ninja · 23/08/2025
On Snapdragon Dev Kit (X Elite) with Chrome, requires enabling unsafe webgpu in chrome://flags GPU: "qualcomm adreno-8xx " 90% 1M: 2.4 / 1.4 4M: 12.8 / 4.7 16M: 57.8 / 20.1 1% 1M: 9.4 / 2.7 4M: 38.0 / 11.4 16M: 174.4 / 63.9
110
Mārtiņš Možeiko @martins.ninja · 13/08/2025
Last year Ryan moved raddebugger mostly C code base off the C++ compilation - only C++ parts were interaction with d3d11 and directwrite api's. And we saw decent improvements. Here are build times in seconds.
130
Mārtiņš Možeiko @martins.ninja · 12/06/2025
On devmaster there was sin approx derivation with parabola yielding 2*x-x*|x| which is pretty much same formula for sin as here. On web archive: web.archive.org/web/20060619... Missing images, but here are graphs on desmos: www.desmos.com/calculator/u... with their extra formula for more precision
110
Mārtiņš Možeiko @martins.ninja · 31/01/2025
There's also __fastfail(FAST_FAIL_FATAL_APP_EXIT);
110
Mārtiņš Možeiko @martins.ninja · 26/11/2024
How about replacing sRGB/linear conversions with simple square & sqrt(x)? I'd guess that for these kind of images the difference will be very minimal, but the code will be smaller (no tables) and probably as fast. And easier to apply SIMD.
210