m1maker / NGT

New open source game toolkit
https://ngtcode.dev/
20 stars 11 forks source link

Removed while loop from function wait and used delay function from sd… #31

Closed bobi6666 closed 5 months ago

bobi6666 commented 5 months ago

…l2. Removed the delay method and now only wait is used in all places to avoid dropping events.

m1maker commented 5 months ago

No. If we will use delay method with wait function, window will be block thread, and eventloop will be stop.

bobi6666 commented 5 months ago

yes this is true but if you call update_game_window from wait method you are not giving programmers ability to take events and events is dropped while that happen

2024-01-19 21:45 GMT+01:00, m1maker @.***>:

No. If we will use delay method with wait function, window will be block thread, and eventloop will be stop.

-- Reply to this email directly or view it on GitHub: https://github.com/m1maker/NGT/pull/31#issuecomment-1901090261 You are receiving this because you authored the thread.

Message ID: @.***>