Skip to content

Commit 414db0e

Browse files
committed
Update frequency details for usermod loop()
Clarified frequency of calls for usermod loop() based on system load.
1 parent d415883 commit 414db0e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

AGENTS.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,10 @@ class MyUsermod : public Usermod {
201201
### Usermod `loop()`
202202
203203
- Called once per main loop iteration. Usermods should simply `return` when `!enabled`.
204-
- Frequency of calls varies with system load - up to 2000 times/sec with few LEDs and little background activity, down to 1-3 times/sec during FS activity or during high workload from effects and other usermods.
204+
- Frequency of calls varies with system load:
205+
* up to 2000 times/sec with few LEDs and little background activity,
206+
* between 20 and 300 times/second during high workload from effects and other usermods,
207+
* (worst case) down to 1-3 times/sec during FS activity or when serving lots of network API requests.
205208
206209
### Usermod IDs
207210
- Add usermod IDs to `wled00/const.h`, integrate new usermods via `wled00/usermods_list.cpp`

0 commit comments

Comments
 (0)