"Can't use screen texture copying" error

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

While running my 2d side scrolling game on Android, sometimes the tonnes of the same error gets spammed causing a big drop in frames. The error is:

E 0:03:52.159 _copy_texscreen: Can’t use screen texture copying in a render target configured without copy buffers.
<C++ Error> Condition “storage->frame.current_rt->effects.mip_maps[0].sizes.size() == 0” is true.
<C++ Source> drivers/gles3/rasterizer_canvas_gles3.cpp:1259 @ _copy_texscreen()

Any ideas what this is? My hunch was it is something related to my parallax background as it occurs when the character moves to certain areas (with the camera following)

That sounds like a deep renderer issue. GLES3 drivers can often be crap on mobiles. Are you using shaders with SCREEN_TEXTURE? BackBufferCopy? Viewports? Taking screenshots? Using texture.get_data()?

If you can reproduce the error in a test project it could be a start to report a bug on Github.

Zylann | 2020-09-10 12:44

Nah not using any of those, I had a fiddle with the project settings so I’ll see if I can make it go away, if not will try make a test project. It definitely is triggered when I scroll the screen

Wallace99 | 2020-09-14 03:39