Search code examples
javaandroidlibgdx

Surface::setBuffersDimensions spammed with android libdgdx app


When I debug my Android app, I find the following in the logcat:

    07-02 04:49:52.686 2734-2771/fr.fosse.deepDrill.androidGame.AndroidLauncher D/Surface: Surface::setBuffersDimensions(this=0x7f8b60fe00,w=1080,h=1776)
    07-02 04:49:52.703 2734-2771/fr.fosse.deepDrill.androidGame.AndroidLauncher D/Surface: Surface::setBuffersDimensions(this=0x7f8b60fe00,w=1080,h=1776)
    07-02 04:49:52.720 2734-2771/fr.fosse.deepDrill.androidGame.AndroidLauncher D/Surface: Surface::setBuffersDimensions(this=0x7f8b60fe00,w=1080,h=1776)

How can I remove them ?


Solution

  • Lokesh Tiwari answered this question here:

    These log come when we have EditText with cursor, And that cursor blink is responsible to redraw screen. When I did

    android:cursorVisible="false" these logs were gone.

    So when studio screen become spam with these logs, Its an alert for developer to check UI draw pattern.

    Hope this helps !