I put a button on my script to change some values on screen, but I set framerate to update every second, so every time I click the value take some time to update and thats not practical…Searching a solution I found redraw(); but, it doesn’t seen to be working…Still update every second and not right on click! Any hint How can I take imediate action ignoring the framerate? Thanks in advance!
Hi! I have a mouseclicked function that add ou subtract time values, I need to update screen when clicked and no the framerate I set (every one second), so I just do what I need (add value to timer) and call the draw to update the screen every time the value changes and not waiting 1 second, that in case is a long time and can generate under or over clicks!..
Try this I think it demonstrates the timing difference. Clicking (redraw()) when the background is red continues through the rest of the red frame, then one green frame, then blue. Keyboard (draw()) when the background is red you get the rest of the red frame then blue.