Skip to content

Commit

Permalink
avm2: Increase actions before timeout check
Browse files Browse the repository at this point in the history
  • Loading branch information
Lord-McSweeney authored and Lord-McSweeney committed Jan 18, 2025
1 parent fd7c493 commit 06d9f9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/avm2/activation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ impl<'a, 'gc> Activation<'a, 'gc> {
opcodes: &[Op<'gc>],
) -> Result<FrameControl<'gc>, Error<'gc>> {
self.actions_since_timeout_check += 1;
if self.actions_since_timeout_check >= 64000 {
if self.actions_since_timeout_check >= 200000 {
self.actions_since_timeout_check = 0;
if self.context.update_start.elapsed() >= self.context.max_execution_duration {
return Err(
Expand Down

0 comments on commit 06d9f9a

Please sign in to comment.