- Textures no longer vanish after a few races on cards without "dynamic depth bias" (issue #23). Some graphics drivers (seen on NVIDIA cards) do not offer dynamic depth bias. Then a depth offset that the game changes almost every frame made the port create a new pipeline state almost every frame; after two or three races the table of pipeline states (32,768) was full, and from then on draws were dropped - the track's textures went first, then the whole picture garbled. The offset is now rounded on such cards (never less offset than the game asks, at most 1/16 more), so the same pipeline state serves a whole range of values. Test with the feature forced off, a 16-car race, 5 minutes: about 4,300 pipeline states, flat on the second lap, no draw dropped. Cards that offer the feature are unchanged.
- Switch (environment variable), in case something looks worse:
LD_BIAS_EXACT=1(exact offsets, as before).
- "dynamic depth bias"가 없는 그래픽카드에서 레이스를 몇 번 하면 텍스처가 사라지던 것 (이슈 #23). 일부 그래픽 드라이버(NVIDIA 카드에서 확인)는 dynamic depth bias를 제공하지 않습니다. 그러면 게임이 거의 매 프레임 바꾸는 깊이 보정값 때문에 거의 매 프레임 새 그래픽 파이프라인을 만들었고, 2 ~ 3번째 레이스쯤 그 표(32,768)가 가득 찬 뒤로 그리기가 버려졌습니다 — 트랙 텍스처부터 사라지고 다음에 화면 전체가 깨짐. 이제 그런 카드에서는 그 값을 반올림해서(게임이 요청한 것보다 작아지지 않고 최대 1/16 더) 한 파이프라인이 여러 값을 함께 씁니다. 그 기능을 강제로 끈 16대 레이스 5분 시험: 파이프라인 약 4,300개, 둘째 바퀴에는 거의 그대로, 버려진 그리기 0. 그 기능이 있는 카드는 바뀐 것 없습니다.
- 이상하면 되돌리는 스위치(환경 변수):
LD_BIAS_EXACT=1(예전처럼 정확한 값).