Max limit on loadimage?
- Jostebo
-
Offline Autor
- Neues Mitglied
-
- Beiträge: 6
- Dank erhalten: 0
Hi. I am in the final stages of creating a Turbine dashboard. Some of you might have seen my photos and videos from Facebook group as well.
I am facing an issue with the number of images I load during startup. NO error message. I use tiny png images as "icons" to show the RPM gauge / temperature gauge ++.
Some of the images are not showing up in the UI, and its always the last one to be loaded. If I change order, it will be the last one.
PS: It is working fine in Studio, but not on the DS-24.
what is the max number of images that can be loaded using lcd.loadimage command?
What is the max number of Kb that can be loaded for pictures / icons?
I am facing an issue with the number of images I load during startup. NO error message. I use tiny png images as "icons" to show the RPM gauge / temperature gauge ++.
Some of the images are not showing up in the UI, and its always the last one to be loaded. If I change order, it will be the last one.
PS: It is working fine in Studio, but not on the DS-24.
what is the max number of images that can be loaded using lcd.loadimage command?
What is the max number of Kb that can be loaded for pictures / icons?
von Jostebo
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- davidmcq137
-
Offline
- Senior Mitglied
-
- Beiträge: 79
- Dank erhalten: 86
Hi Jostebo,
That is an interesting question .. which I guess is a nice way of saying I don't know
The digitech CTU turbine app used arcs like you are for displaying gauges, and had them in multiple colors and multiple sizes and in 5 degree increments. It was a LOT of image loading ... it's very pretty but the downside is a very long loading process.
If it would help you, I have drawn arcs like yours with the anti-alias drawing (rendering) api and of course you have to make them out of filled polygons .. but it is actually not bad .. you don't need as many segments as you think to make the segments invisible at the screen resolution. And it can be drawn continuously vs in increments as you have to do with images. If you are interested it's in my Dial app on my github ( github.com/davidmcq137/JetiLuaDFM ) .. I can point you to the right place if you are interested. It does burn some CPU time but the new TXs handle it easily. You need to look in the dev branch...
Dave
That is an interesting question .. which I guess is a nice way of saying I don't know

If it would help you, I have drawn arcs like yours with the anti-alias drawing (rendering) api and of course you have to make them out of filled polygons .. but it is actually not bad .. you don't need as many segments as you think to make the segments invisible at the screen resolution. And it can be drawn continuously vs in increments as you have to do with images. If you are interested it's in my Dial app on my github ( github.com/davidmcq137/JetiLuaDFM ) .. I can point you to the right place if you are interested. It does burn some CPU time but the new TXs handle it easily. You need to look in the dev branch...
Dave
Last Edit:04 Jan. 2023 04:22
von davidmcq137
Letzte Änderung: 04 Jan. 2023 04:22 von davidmcq137.
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- Raf
-
Offline
- Premium Mitglied
-
- Beiträge: 140
- Dank erhalten: 190
Approx. 6MB is for images. Pngs use rgba mode, so 4Bytes per pixel.
I can recommend to draw antialiased lines instead of loading pictures. Recommendation: at least load image one by one - one image at each program iteration, so the GUI is not blocked. Graphics looks nice
you will need to make it fit also 480x480 screen
I can recommend to draw antialiased lines instead of loading pictures. Recommendation: at least load image one by one - one image at each program iteration, so the GUI is not blocked. Graphics looks nice


Voltario T30, Touch Switch, MicroVario, AMS, SE6
von Raf
Folgende Benutzer bedankten sich: IG-Modellbau, Nicolas
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- Jumbo 747
-
Offline
- Neues Mitglied
-
- Beiträge: 14
- Dank erhalten: 4
Hi Jostebo,
That is an interesting question .. which I guess is a nice way of saying I don't knowThe digitech CTU turbine app used arcs like you are for displaying gauges, and had them in multiple colors and multiple sizes and in 5 degree increments. It was a LOT of image loading ... it's very pretty but the downside is a very long loading process.
If it would help you, I have drawn arcs like yours with the anti-alias drawing (rendering) api and of course you have to make them out of filled polygons .. but it is actually not bad .. you don't need as many segments as you think to make the segments invisible at the screen resolution. And it can be drawn continuously vs in increments as you have to do with images. If you are interested it's in my Dial app on my github ( github.com/davidmcq137/JetiLuaDFM ) .. I can point you to the right place if you are interested. It does burn some CPU time but the new TXs handle it easily. You need to look in the dev branch...
Dave
Hallo, haben Sie einen Link zu dieser App für die CTU?
Grüße
Silvo
Last Edit:05 Jan. 2023 08:52
von Jumbo 747
Letzte Änderung: 05 Jan. 2023 08:52 von Jumbo 747.
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- Jostebo
-
Offline Autor
- Neues Mitglied
-
- Beiträge: 6
- Dank erhalten: 0
Thanks. David.
I tried to reach you thru Facebook Messenger.
I would love to chat more about how to draw some of the graphics.
I tried to reach you thru Facebook Messenger.
I would love to chat more about how to draw some of the graphics.
Last Edit:06 Jan. 2023 07:02
von Jostebo
Letzte Änderung: 06 Jan. 2023 07:02 von Jostebo.
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- Jostebo
-
Offline Autor
- Neues Mitglied
-
- Beiträge: 6
- Dank erhalten: 0
I haven't made this app to work with CTU.
But I have now added support for Xicoy as well, for those using Xicoy turbines. Will post this as well in few days.
But I have now added support for Xicoy as well, for those using Xicoy turbines. Will post this as well in few days.
von Jostebo
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
Moderatoren: Thorn, IG-Modellbau
Ladezeit der Seite: 1.009 Sekunden