Giter Site home page Giter Site logo

Comments (3)

Monsterovich avatar Monsterovich commented on June 3, 2024

GPU: NVIDIA GeForce RTX 3080 Lite Hash Rate (Driver: 550.67)

Post the output of glxinfo here, because it doesn't make any sense.

Or could be related to me running this game on Wayland and thus it might run with XWayland and this might cause issues?

  • Does the game work in X11?
  • Does the game work in non-flatpak environment?

from warzone2100.

VortexAcherontic avatar VortexAcherontic commented on June 3, 2024

Running it in a non-flatpak environment (openSUSE Tumbleweed distrobox which is what MicroOS is based off here) does in fact work with the default OpenGL renderer.

warzone2100 
info    |13:44:56: [wzChangeFullscreenDisplayMode:2168] Changing fullscreen mode to [0] 0x0
info    |13:44:56: [wzChangeFullscreenDisplayMode:2207] Getting desktop display mode
info    |13:44:56: [createGLContext:185] Requested OpenGL 3.3 context
info    |13:44:56: [initGLContext:3422] OpenGL Vendor: NVIDIA Corporation
info    |13:44:56: [initGLContext:3425] OpenGL Renderer: NVIDIA GeForce RTX 3080/PCIe/SSE2
info    |13:44:56: [initGLContext:3428] OpenGL Version: 3.3.0 NVIDIA 550.67
info    |13:44:56: [initGLContext:3641] Success
info    |13:44:56: [_initialize:3232]   * Instanced rendering support was detected
info    |13:44:56: [initTerrainShaderType:2527] Defaulting terrain quality to: High
info    |13:44:56: [rebuildSearchPath:794] Loaded terrain overrides from: /usr/share/warzone2100/

The glxinfo can be found here.
It was captured form within the Tumbleweed distrobox container. As the distrobox shares the driver with the host OS it should be identical.

Is there a way of running glxinfo inside the flatpak environment of WZ2100?

Running it from an X11 session as flatpak does in fact work as well.
Switching back to Wayland after the successful launch using X11 it results again in the reported errors above.

from warzone2100.

VortexAcherontic avatar VortexAcherontic commented on June 3, 2024

Found the issue I think. By default WZ2100 is allowed to run on Wayland or XWayland and will favor native Wayland. Which seems not to work with the default OpenGL renderer. Restricting access to Wayland using flatseal in order to force it to run on XWayland works.

Forced Wayland:

flatpak run net.wz2100.wz2100 
info    |13:57:56: [rebuildSearchPath:836] Failed to load expected terrain quality overrides: terrain_overrides/high
info    |13:57:56: [rebuildSearchPath:794] Loaded terrain overrides from: /app/share/warzone2100/
info    |13:57:57: [wzChangeFullscreenDisplayMode:2168] Changing fullscreen mode to [0] 2560x1440
info    |13:57:57: [createGLContext:185] Requested OpenGL 3.3 context
fatal   |13:57:57: [createGLContext:192] OpenGL initialization did not give double buffering! (0)
fatal   |13:57:58: [createGLContext:193] Double buffering is required for this game!
error   |13:57:58: [_initialize:3218] Failed to create OpenGL context
fatal   |13:57:58: [wzMainScreenSetup:3251] gfx_api::context::get().initialize failed for backend: opengl

Forced XWayland:

flatpak run net.wz2100.wz2100 
info    |13:58:02: [rebuildSearchPath:836] Failed to load expected terrain quality overrides: terrain_overrides/high
info    |13:58:02: [rebuildSearchPath:794] Loaded terrain overrides from: /app/share/warzone2100/
info    |13:58:02: [wzChangeFullscreenDisplayMode:2168] Changing fullscreen mode to [0] 2560x1440
info    |13:58:02: [createGLContext:185] Requested OpenGL 3.3 context
info    |13:58:02: [initGLContext:3422] OpenGL Vendor: NVIDIA Corporation
info    |13:58:02: [initGLContext:3425] OpenGL Renderer: NVIDIA GeForce RTX 3080/PCIe/SSE2
info    |13:58:02: [initGLContext:3428] OpenGL Version: 3.3.0 NVIDIA 550.67
info    |13:58:02: [initGLContext:3641] Success
info    |13:58:02: [_initialize:3232]   * Instanced rendering support was detected
sh: line 1: xdg-mime: command not found

from warzone2100.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.