sbarisic / NuklearDotNet

.NET binding for the Nuklear immediate mode GUI
Other
189 stars 15 forks source link

[BUG] Force redraw will not occur if you don't have any input. #19

Closed Donaut closed 4 years ago

Donaut commented 4 years ago

Calling ForceUpdate or NuklearAPI.QueueForceUpdate functions will do not run until you provide some input. (mouse move or a keypress).

Reproduce the issue in the SFML example.

  1. First, comment out all the input codes. image

  2. Inside the while loop use the _NuklearAPI.QueueForceUpdate()_ function.

  3. Start Debugging and you will see that the IframeBuffered.BeginBuffer operation gets called 2-3 times and never again

Donaut commented 4 years ago

Yes i read your previous post. But can't we do something about it?

sbarisic commented 4 years ago

Ah, yes, i see. I will try to fix it today. The problem is that i'm using direct memory compare with the buffer objects here https://github.com/sbarisic/NuklearDotNet/blob/master/NuklearDotNet/NuklearAPI.cs#L167

Donaut commented 4 years ago

You don't need to do :D. Input event occur so often it's just not worth the pain.