Posts: 923
Threads: 7
Joined: Jan 2012
Reputation:
47
Location: Argentina
Wasn't only HW that was affected by the Memory Destruction of Doom? I remember to have played some stages in Software mode just fine. =S
Other than that, don't really wanna test... me not like BSoDs.
Posts: 516
Threads: 19
Joined: Apr 2009
Reputation:
6
Location: Romania
it is software mode that has issues not hardware for this game, hardware looks correct.
Posts: 288
Threads: 2
Joined: Sep 2005
Reputation:
12
01-28-2012, 08:05 PM
(This post was last modified: 01-28-2012, 08:13 PM by Gabest.)
This one seems to be a bug in the game, the texture size for the water is set to 64x64, but the coordinates wrap around at 64x128. Real hardware works similar to the virtual memory manager, it can detect which page is read at every location and fetches data into the texture cache as needed. I just read the whole texture once and draw the triangle, if the address is outside the texture it may be memory garbage or can even crash. Normally games do not have such bugs because it would be visible, but in this case the pitch and the format of the texture makes it possible that it points to the same memory location repeating itself at every 64 pixel vertically, simply the y coordinate is not a factor in the page address calculation when the pitch is smaller than two (64 pixel units) for 8/4-bit formats.
In case you were wondering, hw mode cannot address outside the texture, it clamps or wraps it according to the texture size, not possible to set it independently.
I'm going to add some safety checks to these wrapping sizes, will be interesting to see if any other game does this.
Posts: 8.597
Threads: 105
Joined: May 2014
Reputation:
168
Location: 127.0.0.1
Thank you for your report.
This bug report has now been marked as Resolved since it has been fixed on our code base.
This thread will now be closed and moved to the resolved bug reports subforum.
We're supposed to be working as a team, if we aren't helping and suggesting things to each other, we aren't working as a team.
- Refraction