How do I know how many dynamic bitmaps and bitmap id are loaded
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-11-06 1:05 AM
Hi @Martin KJELDSEN​ :
I want to know how many live images are cached.I found two pointer variables.
- static CacheTableEntry* cacheTable; //address of allocation point cache
- static BitmapId* allocationTable; //order of allocations in cache
But I couldn't get any useful information.
Thank you!
Solved! Go to Solution.
- Labels:
-
TouchGFX
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-11-06 4:40 AM
​We track the number internally, but it's not public - It could be. You could just track it yourself, every time you cache something, increase some counter, and decrease on remove. That's what we do internally. And you already know the total amount the cache can hold because you specified that yourself.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-11-06 4:40 AM
​We track the number internally, but it's not public - It could be. You could just track it yourself, every time you cache something, increase some counter, and decrease on remove. That's what we do internally. And you already know the total amount the cache can hold because you specified that yourself.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-11-07 12:22 AM
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-11-09 12:15 AM
​Welcome! I'll see if maybe we can expose that counter - Appears to be relevant for some.
