2020-03-31 05:58 AM
I have attached a very simple Application to show the problem with the Cacheable Container.
I have a Display with a Resolution of 480x320. The Display is naturally in Portrait mode, but we use it Landscape, so I have set in the Display configuration the Width to 320 and the Height to 480.
In this configuration if the cache functionality of the CacheableContainer is enabled the whole container is just black. If I disable the cache functionality the Container shows what it should.
When I now invert the Display configuration to width=480 and height=320, the Cacheable Container works.
Am I missing something here ?
Thanks for helping
Solved! Go to Solution.
2020-11-20 02:35 AM
Just trying to isolate it - I need to figure out if I can just send you a patch or if I have to provide you with a new library (in which case it's not as simple - politics, etc).
/Martin
2021-02-10 11:16 AM
@Martin KJELDSEN I am still waiting on a fix for this. Has any progress been made? I just looked at the 4.16.0 X-Cube pack changelog and saw no mention of a fix. Right now screens with with more than about 10 objects are running far less than 60FPS, degrading the experience quite a bit. Please provide an update.
Regards,
James
2021-02-12 02:57 AM
It's in 4.16.0 - We missed the changelog update, though.
/Martin
2021-04-14 07:39 AM
@Martin KJELDSEN
Could this also be an issue for the bitmap painters? (PainterRGB565Bitmap or PainterRGB565L8Bitmap) ? I am seeing a similar issue when painting an image into a Circle.
I am not placing it in a cacheable container, but just on the screen.
2021-04-14 02:57 PM
I should mention that the issue is not that the images are getting messed up, but they are in the incorrect location when using the painter and the native orientation is portrait (width is 240 and height is 320) and the Display Orientation setting is set to Landscape. If I use a color-fill painter on the circle the placement of the circle is correct.
I am using the painter in code. What is peculiar is that when I change the width of the box of the circle in code (but not the X position), this actually moves the image being painted on the circle. This is NOT what typically happens when changing the width of the circle in the Designer. It is almost as if the x position is being effected by the width setting.
Any input would be appreciated......