04-20-2024, 07:43 AM
(translated by Google translator)
Already at night, when I was already falling asleep, I asked myself which way was better to use in the "Nature" program:
1. infinite loop "While";
2. or only a reaction to an events ?
If I only use reactions to events, then in Small BASIC is it better to call one Timer tick or execute the entire reaction code in the event handler subroutine?
( but it is known that the handler subroutine must have a minimum code size )
Already at night, when I was already falling asleep, I asked myself which way was better to use in the "Nature" program:
1. infinite loop "While";
2. or only a reaction to an events ?

If I only use reactions to events, then in Small BASIC is it better to call one Timer tick or execute the entire reaction code in the event handler subroutine?
( but it is known that the handler subroutine must have a minimum code size )