Number of custom variables

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
User avatar
chromo23
Normal user
Posts: 821
Joined: 10 Sep 2020, 16:02
Location: germany

Number of custom variables

#1 Post by chromo23 » 05 Oct 2022, 13:55

I sometimes use a lot more than 16 custom variables but just found this in the manual:
Bildschirmfoto 2022-10-05 um 13.51.33.png
Bildschirmfoto 2022-10-05 um 13.51.33.png (12.56 KiB) Viewed 1672 times

@TD-er can you clarify that?

TD-er
Core team member
Posts: 8642
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Number of custom variables

#2 Post by TD-er » 05 Oct 2022, 14:02

Hmm that limit has been removed quite a while ago.
Apparently that part of the docs has not yet been updated.


TD-er
Core team member
Posts: 8642
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Number of custom variables

#4 Post by TD-er » 05 Oct 2022, 14:47

chromo23 wrote: 05 Oct 2022, 14:23 What is the actual limit?
The amount of memory on the ESP.
The max. variable nr you can use is 2^32 - 1.

It is stored in a std::map, with unsigned int as a key.


Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 27 guests