Opened 5 years ago
Last modified 16 months ago
#5555 new defect
[macOS] loading a mod causes rendering with wrong screen size — at Version 8
Reported by: | Friggigatto | Owned by: | |
---|---|---|---|
Priority: | Should Have | Milestone: | Backlog |
Component: | Core engine | Keywords: | |
Cc: | Krinkle | Patch: |
Description (last modified by )
When activating mods in 0 A.D. alpha 23 in OS X 10.11.6, graphic glitches appear. I've attached a screenshot.
The top part of the screen is repeated, and also the mouse position is off (the pointer is not visible in the screenshot, but it is hovering above the "learn to play" button).
My machine is a MacBook Pro mid-2012.
EDIT:
- similar issue described in #5938
Change History (11)
by , 5 years ago
Attachment: | graphic_glitches_0ad.jpg added |
---|
comment:1 by , 5 years ago
comment:2 by , 5 years ago
I've experienced something similar. Happens every time after pressing "Start mods", e.g. when enabling or disabling fgod (I have no other mods currently).
- macOS 10.14.6
- MacBook Pro 15" Retina
- Resolution 2880x1800 (2 dppx, as 1440x900)
- Graphics card: AMD Radeon R9 M370X 2 GB; and Intel Iris Pro 1536 MB. I have the macOS "Automatic graphics switching" setting disabled, which means it is (should be) using the AMD Radeon always.
On A23, and on trunk until "recently", what happened for me is that the top 150px (154px?) is red, and the actual game is pushed down (partly off-screen). The mouse iterations are all wrong at that point (based on where the pixels should be, not where they currently are).
Last week I did a full rebuild of my trunk install, and since then the bug changed. It's now getting stretched out. The game is 150px less tall, but then stretched back out. Again, the mouse is still "correct" that is, it is acting on where the pixels should be.
After this, I quit the game and restart, at which point everything is fine until the next time I toggle a mod.
by , 5 years ago
Attachment: | capture-a23-red.png added |
---|
by , 5 years ago
Attachment: | capture-r22798-stretch.jpg added |
---|
comment:3 by , 5 years ago
Cc: | added |
---|
comment:4 by , 5 years ago
Per elexis, I instrumented the before-last line of CVideoMode::SetVideoMode
as follows:
debug_printf("window size (xres, yres): %d %d\n", g_xres, g_yres); debug_printf("window position (winX, winY): %d %d\n", m_WindowedX, m_WindowedY);
Upon triggering the bug by pressing "Start mods", the automated relaunch that triggers the bug, logs the following:
… TIMER| InitVfs: 1.847 ms Writing the mainlog at …/0ad/logs/mainlog.html TIMER| CONFIG_Init: 4.879 ms Sound: AlcInit success, using Built-in Output window size (xres, yres): 1440 746 window position (winX, winY): 805240832 805240832 UserReport written to …/0ad/logs/userreport_hwdetect.txt TIMER| RunHardwareDetection: 3.836 ms …
Notice that the reported yres is 154px short of the actual height (900px).
comment:5 by , 5 years ago
In the report Stan attached to #5599, we can see that CVideoMode::m_CurrentW
and other members are not initialized.
Given that one has the code at hand and found a place where the according window size is off, it should be possible by reading the code and adding more printf to locate the call that produces the wrong result.
comment:6 by , 5 years ago
Description: | modified (diff) |
---|---|
Keywords: | mod glitches removed |
comment:7 by , 5 years ago
Summary: | loading a mod causes graphic glitches on OS X 10.11.6 → loading a mod causes rendering with wrong screen size on OS X 10.11.6 |
---|
comment:8 by , 16 months ago
Description: | modified (diff) |
---|---|
Summary: | loading a mod causes rendering with wrong screen size on OS X 10.11.6 → [macOS] loading a mod causes rendering with wrong screen size |
- a closely related ticket mentioned in the description (#5938)
Which mods? It sounds like it might be an issue with the mod.