@LunaticDancer@mastodon.gamedev.place
Post #3118823
2026-02-12 06:39 UTC
@demofox@mastodon.gamedev.place oh this is marvelous, great work!
How's the performance overhead? I imagine it's not too bad since this seems to mostly be a fancy data serialization wrapper for DX12 so probably the heaviest part of this is the user iterating over the pixel array (I'm pretty new to graphics programming myself so I might be off-base here).
Also any plans to port the library to C?
Replies (1)
-
@demofox@mastodon.gamedev.place 2026-02-12 06:55
@LunaticDancer@mastodon.gamedev.place its real fast, no overhead in the library. The pixel values persist across frames, so you could do "dirty rectangles" instead of updating every pixels every frame. If you knew which pixels were updated each frame, you could copy just those regions. The examples run like pixel shaders as well and iterate overall pixels, but you could blit rectangles instead. But its real fast. These demos are like 0.3ms per frame on my machine in release.