Screen flush


#1

During a loop with nodes/events, it is interesting to be sure that the screen is updated with a kind of screen flush … is it possible to do it with nodes/Haxe … a kind of "force screen update " ?


Node groups
#2

Related ticket: https://github.com/armory3d/armory/issues/732.


#3

@lubos
with a new node RLOnRenderNode, seems I have no more the problem of screen flush

Thereafter the code if you want to reuse for a next release.

package armory.logicnode;

class RLOnRenderNode extends LogicNode {

	public function new(tree:LogicTree) {
		super(tree);
		kha.System.notifyOnRender(render);
	}

	function render(fb: kha.Framebuffer) {
		run();
	}
}