Menu

#93 Graphics issue

v1.0 (example)
open
nobody
None
5
2025-02-25
2019-02-27
flip101
No

Hi, the graphs are not really working properly. When getting into the menu's everything is fine. But when starting the actual game the video is getting messed up. In general there is a lot of flikkering

  • sprites of units change in different positions when standing still
  • The screen before the mission with the PROCEED button flikkers through the game
  • flikkering in build bar

Also i noticed that when getting into the missions i hear music but i don't hear the voice of the mission. But i see a mouth moving .. but maybe it was like that in the original game as well. The voice of the introduction movie to the game works though.

Discussion

  • flip101

    flip101 - 2019-02-27

    When i alt tab back to desktop and back to game sometimes this fixes the problem

     
  • flip101

    flip101 - 2019-02-27

    Making a screenshot also sometimes helps to stop flikkering

     
  • flip101

    flip101 - 2019-02-27

    I also see units flikkering in spots where they used to be before i moved them. Same for the mouse pointer.

     
  • flip101

    flip101 - 2019-02-27

    under the carry-all i see a black square where i expect transparancy

     
  • flip101

    flip101 - 2019-02-27

    When i move around the map everything flikkers into it's old position including the fog of war

     
  • flip101

    flip101 - 2019-03-14

    This is now mostly fixed by updating nvidia driver from 390 to 418.39

    Only when i give a unit an order to go to a position the sprite for the click is not totally transparant so i see that circle inside a black square of the sprite.

     
  • Bad Blue Bull

    Bad Blue Bull - 2019-09-06
    Post awaiting moderation.
  • Timo Bögner

    Timo Bögner - 2021-11-22

    I also have the flickering effect on two of three linux machines: AMD and Nvidia GPU show it, Intel GPU does not.
    While the root cause is still not understood, I found two possibilities to avoid the flicker problem and committed changes to the branch render-driver-selection for activating them via the INI-File:

    1. Choose the software render driver by setting "Render Driver Index" to the corresponding index (can be found in log file). This deactivates the HW accelerated rendering and will stress the CPU, so a fast machine is needed.
    2. Turn off rendering to a screen texture before copying it to the window. This can be achieved by setting "Render To Texture" to false. This has the disadvantage, that underground things are not displayed correctly (sand worms and sonic tank beam).

    Hopefully we will find a better solution one day.

     

    Last edit: Timo Bögner 2021-11-23
  • boudin

    boudin - 2022-12-10

    I'm facing the same flickering issue, I think I found the source of the problem.

    By removing a clear a present from the render to texture logic the bug seems gone and rendering of underground units seems good as well:

            // render to texture
            SDL_SetRenderTarget(renderer, screenTexture);
    
            // clear texture
            SDL_SetRenderDrawColor(renderer, 0, 0, 0, 255);
            SDL_RenderClear(renderer);
    
            // draw scene to texture
            drawScreen();
    
            // copy texture to buffer
            SDL_SetRenderTarget(renderer, nullptr);
            SDL_RenderCopy(renderer, screenTexture, nullptr, nullptr);
    
            // update screen
            SDL_RenderPresent(renderer);
    
     
  • Truster

    Truster - 2025-02-25

    Is this Linux or Windows? I also facing flickering issues with Wayland, but runs smoothly on X (tested Flatpak Version on Fedora Silverblue 41)

     

Log in to post a comment.

MongoDB Logo MongoDB