Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Denzil Quixode on Sat 28/07/2012 22:11:25

Title: [Runtime Plugin] OK to call engine->PollSystem() from AGSE_SAVEGAME handler?
Post by: Denzil Quixode on Sat 28/07/2012 22:11:25
If I am doing a lot of processing in an AGSE_SAVEGAME event handler, potentially enough to cause sound skipping, is it safe to call the PollSystem() method to avoid the sound skip?
Title: Re: [Runtime Plugin] OK to call engine->PollSystem() from AGSE_SAVEGAME handler?
Post by: Calin Leafshade on Sun 29/07/2012 17:26:37
PollSystem() deals with entirely asynchronous events that are not part of game loops so it should be safe to call it from anywhere. At least that is my understanding.