afwbkbc / glsmac

Unofficial open-source OpenGL/SDL2 reimplementation of Sid Meier's Alpha Centauri ( + Alien Crossfire )
GNU Affero General Public License v3.0
400 stars 12 forks source link

[VS-Clang] Tile lookup doesn't update ingame #6

Closed tsunamistate closed 1 year ago

tsunamistate commented 1 year ago

OS: Windows 11 IDE: Visual Studio 2022 17.4.4 Compiler: Clang 15.0.1 System specs: AMD Ryzen 2600X / Radeon RX590 / 16 GB RAM

Steps to reproduce:

  1. Open Visual Studio and open glsmac folder with it. Wait until CMake configuration finishes
  2. Use Build -> Build All or Ctrl+Shift+B shortcut to compile an executable
  3. Open a shell (Powershell or CMD) and navigate to executable's path: <project root>\out\build\x64-debug-win-clang\bin
  4. Start a command to execute GLSMAC with game path GLSMAC.exe <smac_directory>
  5. Click Quick Start to generate a map
  6. Click on any tile

Actual result: Debug console has messages like <Task::World::#40537> Looking up tile at 261x442 but game UI doesn't update with tile information

https://user-images.githubusercontent.com/4958520/218312322-d006f644-bafa-4dc7-baa7-5790282e88cd.mp4

Expected result: Game UI shows tile information after clicking on it

afwbkbc commented 1 year ago

So far I couldn't reproduce it. I tried on 3 different PCs with different GPUs (Nvidia GTX1070, Radeon R7 and Intel 4500U), tile selection works correctly. All of them run Linux, tho. I also compiled windows version inside VirtualBox, then managed to run it on Radeon R7 computer through wine, and tile selection worked too. I'll try to get some Windows computer next week, maybe it's drivers.

hartmark commented 1 year ago

I'm on archlinux with AMD gpu and it seems to work for me too

afwbkbc commented 1 year ago

I fixed some FBO-related code in b272f74, give it a try.

afwbkbc commented 1 year ago

Would be really cool to find at least one more person with this problem, and to know his OS and hardware... I bet it's related to Windows 11 but can't reproduce it because I can't install it.

afwbkbc commented 1 year ago

Finally fixed in 9a94b60775476310d14a101fb553ea4ed70e684d + c1b34952b23a13d7bb88eee2c3c8d066ee8ec128, ty schombert for pointing me in right direction :)