Thanks for the quick replies!
I have already selected the RTX 3050 dGPU for Pyrogenisis.exe in Nvidia settings. I can see that the dGPU becomes active in task manager when I try to open the game.
Also as a side note, if 0AD is not set to use the dGPU in Nvidia control panel (i.e., the Ryzen iGPU is used instead), I get the following error message:
Much to our regret we must report the program has encountered an error.
Please let us know at http://trac.wildfiregames.com/ and attach the crashlog.txt and crashlog.dmp files.
You may find paths to these files at https://trac.wildfiregames.com/wiki/GameDataPaths
Details: unhandled exception (Access violation reading 0x00000024)
Location: unknown:0 (?)
Call stack:
(error while dumping stack: No stack frames found)
errno = 0 (No error reported here)
OS error = 0 (no error code was set)
Did not find the user.cfg file. Tried searching for it in "C:\Users\my_user_name\AppData\Local" and it does not exist. I did however create a local.cfg file in "C:\Users\my_user_name\AppData\Local\0 A.D. alpha\binaries\data\config" and added 'preferglsl = true' there. I can see from the mainlog.html that the string is read from local.cfg. However, I can also see that two strings are read from user.cfg even though I could not find that file.
...
Loading config file "config/local.cfg"
Loaded config string "windowed" = "true"
Loaded config string "preferglsl" = "true"
Loading config file "config/user.cfg"
Loaded config string "userreport.enabledversion" = "0"
Loaded config string "userreport.id"
...
This is the first time I have installed 0AD, and the only version I have tried to install is 0.025b from the file 0ad-0.0.25b-alpha-win32.exe downloaded from the 0AD webiste. However, deleting the contents of "C:\Users\my_user_name\Documents\My Games\0ad\mods\user" (which was a folder called gui) seems to have solved the problem. This is the contents of that folder:
user
|- gui
| |- common
| | |- modern
| | | |- setup.xml.cached.xmb
| | | |- sprites.xml.cached.xmb
| | | |- styles.xml.cached.xmb
| | |- global.xml.cached.xmb
| | |- setup.xml.cached.xmb
| | |- sprites.xml.cached.xmb
| | |- styles.xml.cached.xmb
| |- pregame
| | |- backgrounds
| | | |- carthage.xml.cached.xmb
| | | |- hellenes.xml.cached.xmb
| | | |- kush.xml.cached.xmb
| | | |- seleucid.xml.cached.xmb
| | |- userreport
| | | |- userreport.xml.cached.xmb
| | |- backgrounds.xml.cached.xmb
| | |- mainmenu.xml.cached.xmb
| | |- menupanel.xml.cached.xmb
| | |- ProjectInformation.xml.cached.xmb
| | |- sprites.xml.cached.xmb
| | |- styles.xml.cached.xmb
| |- page_pregame.xml.cached.xmb
So, after deleting the contents of "C:\Users\JohnDoe\Documents\My Games\0ad\mods\user" the game now seems to work. I have yet to play, so I'll report back after a couple of games.
As a side note, it seems I'm currently unable to attach files in forum posts. There is no option to attach in the files panel, and dragging and dropping images results in the following message: "You cannot paste images directly. Upload or insert images from URL". This worked yesterday.
Thank you all for your help so far!