I ran the Analog sample by switching the buffers to modern form:
_offscreenBuffer = Graphics.createBufferedBitmap({
:width => dc.getWidth(),
:height => dc.getHeight(),
:palette=> [
Graphics.COLOR_DK_GRAY,
Graphics.COLOR_LT_GRAY,
Graphics.COLOR_BLACK,
Graphics.COLOR_WHITE
] as Array<ColorValue>
}).get();
And date buffer:
_dateBuffer = Graphics.createBufferedBitmap({
:width=>dc.getWidth(),
:height=>Graphics.getFontHeight(Graphics.FONT_MEDIUM)
}).get();
After that it compiles and runs. However when I profile it, I don't get good numbers:
drawBackground takes nearly 10 000 us on average with with Forerunner 955 whereas with Fenix 6 it takes just 4000 us.
That's more than twice as bad with Forerunner 955 than Fenix 6. Is something off? I also notice that emulator does not show antialiasing on FR955 but it does on older devices.
Thanks