Skip to content

Conversation

@Joe7M
Copy link
Contributor

@Joe7M Joe7M commented Jan 16, 2026

Hi Chris,

when using DELAY(0) SmallBASIC always froze because it was caught in an endless loop. I fixed this and improved the delay in general. Now DELAY will have a jitter of max 1ms. The SDL version will delay with a minimum of 1ms instead of >5ms. In Android DELAY will be a little bit less CPU consuming. Additionally a delay time of <=0 will be ignored instead of doing some int-to-uint casting.

Best regards, Joerg

Copy link
Contributor

@chrisws chrisws left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good thanks

@chrisws chrisws merged commit 66ba6fc into smallbasic:master Jan 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants