tzachshabtay / MonoAGS

AGS (Adventure Game Studio) reimagined in Mono
https://tzachshabtay.github.io/MonoAGS/
Artistic License 2.0
28 stars 8 forks source link

Refactor: Change "ChangeRoom" to be "ChangeRoomAsync" #126

Closed tzachshabtay closed 7 years ago

tzachshabtay commented 7 years ago

ChangeRoom must be async: it needs to wait async on room transition change which is trigger from the rendering thread. if ChangeRoom is not async and is called from the rendering thread it will then hang the game. Workaround: if calling "ChangeRoom" from the render thread, call it with Task.Run.