Repository navigation
Conversation
…nstead of Config.RGB_565
|
After everything said in #1654, why is 16-bit color still the default? Analysis there wasn't detailed enough lol? It's better to just let go of 16-bit color. No parameter/option. 16-bit color should be regarded as having special usage in (micro-)optimizations, as a last resort when dealing with tons of large bitmaps at the same time (think gallery or photoshop app), and even then it's a big if. This library is nowhere near such reasons. If you need a little more convincing, look at hill shading gradients in 16-bit color... |
|
@Sublimis This was already discussed. 🙂 We did not see significant improvements, unless using hillshading (which is not used by all users) So the current config has no significant reason to change as default affecting all apps out there. This is the purpose of the parameters, everyone enables whatever they want for their apps. |
|
Understanding your reasons, not to say fears, we see it differently: Now it's not forced any more, but it's still the default parameter that no one will touch. It's a good first step, better late than never, but still. Have you considered the fact that there are other render themes out there besides Motorider? |
|
Also let's use correct boolean in #1656 to activate new things, |
|
Sorry, I do not understand the question. Same color values in render themes produce the same color result on the screen. |
But it won't be reverse one day 😅 (the sooner the better!) |
There it is! The above statement is incorrect for 16-bit color. |
|
So the |
Yes. https://en.wikipedia.org/wiki/Indexed_color |
|
Sure, but that's why there are options to keep everyone happy. 🙂 It's up to the developer to choose what they need, |
|
In short, the exact colors that will be seen on the screen depend entirely on the color palette used in the 16-bit bitmap (i.e. the rendering theme). There is no 1-to-1 color mapping, only approximations. Some colors will get their exact 24-bit equivalent, but how many will not depends entirely on the properties of the color palette used and the relationships between the colors. If you're now thinking "but the rendering theme doesn't use that many colors!", let's not forget that we have antialiasing enabled. |
Now to be cynical, where has the option been for the last 10 years? 😅
Have you done the math? How much memory is saved? |
|
We have to keep in mind that Mapsforge is not like VTM which uses OpenGL and GPU natively. |
|
Understandable, but as already stated, since year 2017 bitmaps are stored in the native heap. Native heap uses all the memory the device has. The year is 2025, devices have 4GB+ of RAM, and we're talking 1-2MB savings here. The 16-bit default is now just on the wrong side of history. |
No description provided.