private void toggleBpp() {
        int bpp = settings.getBitsPerPixel();
        bpp = (bpp == 24) ? 16 : 24;
        System.out.println("BPP = " + bpp);
        settings.setBitsPerPixel(bpp);
        setSettings(settings);

        restart();
    }
Restart the app, requesting a different number of bits per pixel in the
RGB buffer.
jme3-examples/src/main/java/jme3test/renderer/TestIssue798.java