def call_sync_callbacks(self):
current_cycles = self.cycles<EOL>for callback_cycles, callback in self.sync_callbacks:<EOL><INDENT>last_call_cycles = self.sync_callbacks_cyles[callback]<EOL>if current_cycles - last_call_cycles > callback_cycles:<EOL><INDENT>self.sync_callbacks_cyles[callback] = self.cycles<EOL>callback(current_cycles - last_call_cycles)<EOL><DEDENT><DEDENT>
Call every sync callback with CPU cycles trigger