Browse Source

See performance of 16 bpp colour

Donald Carr 7 years ago
parent
commit
1e4257e64a
1 changed files with 7 additions and 0 deletions
  1. 7 0
      src/main.cpp

+ 7 - 0
src/main.cpp

@@ -182,6 +182,13 @@ int main(int argc, char *argv[])
             format.setGreenBufferSize(8);
             format.setBlueBufferSize(8);
             QSurfaceFormat::setDefaultFormat(format);
+        } else if (settings.value("force16bpp", true).toBool()) {
+            QSurfaceFormat format = QSurfaceFormat::defaultFormat();
+            format.setAlphaBufferSize(0);
+            format.setRedBufferSize(5);
+            format.setGreenBufferSize(6);
+            format.setBlueBufferSize(5);
+            QSurfaceFormat::setDefaultFormat(format);
         }
 
         if (settings.value("forceSingleBuffer", false).toBool()) {