You don't need to call g.clear(), since you're just going to overwrite the entire screen with the contents of the buffer. If you remove that line the flicker should go away.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Okay, now I mixed up a sample of your two suggestions. But now I have heavy flickering again:
I guess I have still a big misunderstanding of the usage of rendering with the Bangle.js.