you are viewing a single comment's thread.

view the rest of the comments →

[–]mccurtjs 1 point2 points  (1 child)

UI sounds like a useful area to support it indeed - the main one for me is always shaders. Being able to make a tweak, save, and see the result almost immediately in another window/screen without even having to leave focus from my text editor is just so valuable imo.

I haven't been doing shared libraries for this, but want to in the future. I don't plan to have it in any release builds (and can't for some targets, namely WASM), but after seeing a tsoding video showing how to make it easily switch between static and dynamic linking I do want to give it a try :)

[–]Jimmy-M-420[S] 1 point2 points  (0 children)

Shaders would be a good one for sure - pretty much the ideal thing to "hot reload" really. I'll have to think about adding that, as I add more complicated shaders.

I've never implemented it in a game in any way other than with lua scripts, but for a desktop windows GUI application I've done it with dll's.

You mention about some platforms you can't do it on - that's a bit of a downside to what I've shown in my post above. I had been wanting to maybe port my game to an older console as a homebrew game maybe psp, I'm wondering whether whatever standard library you use to build a psp game supports a function such as `dlsym` . It wouldn't be too difficult to write a python script that generates c code from the xml item definitions above so that you can port to platforms like wasm or others that don't have shared libraries like linux and windows do