android screen flicker

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By burstina

hello,
I have problem exporting projects on my own android device: screen flickers like hell.
It seems related to screen buffer: scrolling content up and down, I can see some old ghost frames. It looks like .

As an example, think about a black background and a horizonal white line: moving the line up or down the screen displays 3 flickering white lines .

My device runs Mali-T880

Instead, exporting to Nox Player it works pretty well.

Isn’t it weird? How can I solve it?

The issue

Symptoms look as some frames are not computed (not initialized, not redrawn), but still exist whitnin video buffer, thus displayed.

So I ended up solving this issue forcing nodes to update each frame, putting following code in main node:

  func _process(delta):
	for i in get_children():
		i.update()

It looks an engine bug to me.


burstina | 2018-11-22 17:10

:bust_in_silhouette: Reply From: GodotUser

Hello,

This has been an issue for me as well.

May I ask what is in your update() function?

Thanks