zig-sfml-wrapper icon indicating copy to clipboard operation
zig-sfml-wrapper copied to clipboard

What if some ressources could be on the stack?

Open Guigui220D opened this issue 4 years ago • 1 comments

It's kind of sad that everything needs allocation and thus a try to create it and a destroy. It would be great if some things could be on the stack rather than this way. It would probably need opening up more of the csfml to us, and probably mean touching the implementation, as opposed to just wrapping things. This issue is more like a reminder to look into this.

Guigui220D avatar Nov 02 '21 16:11 Guigui220D

I would need to figure out the data layout of those things from the c++ code and then imitate it. It wouldn't be very portable but I could try it.

Guigui220D avatar Nov 03 '21 09:11 Guigui220D

This doesn't seem to be possible without weird hacks

Guigui220D avatar Jun 11 '24 19:06 Guigui220D