in reply to Re: Coding for OpenGL "live"
in thread Coding for OpenGL "live"
Its been a while, but to clarify:
require is not terribly useful because it will only load the draw code once.
The code DOES need to recompile repeatedly in order to incorporate changes to the drawframe code as soon as they are saved to disk. (This being the entire point of live coding.) An enhancement could be made to only recompile the code if the file on disk has been changed since the last frame, but reloading it every frame is simple and effective.
|
|---|