Skip to content

Commit 6b281ab

Browse files
committed
Calculate D3D9's age dynamically. Yes, really.
1 parent 563d92e commit 6b281ab

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

falloutnv.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ <h3>Welcome!</h3>
136136
<h3>Why?</h3>
137137
</p>
138138
<p>
139-
Let's be honest here, the engine did not age well. The renderer is based on now 22 year old DirectX 9, which fails to fit-in with modern GPUs and Windows.
139+
Let's be honest here, the engine did not age well. The renderer is based on now <span id="d3d9_year">22</span> year old DirectX 9, which fails to fit-in with modern GPUs and Windows.
140140
It's extremely inefficient and CPU bound, has glaring issues with display modes, memory handling and overall stability.
141141
<br>
142142
As for Bethesda's code - it also fails (horribly) to scale well with modern processors, something that you can see even in their latest titles.

javascript.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,22 @@
11
window.addEventListener('resize', sizeChanged);
22
document.addEventListener('DOMContentLoaded', function () {
3+
setD3D9Year();
34
updateProgressBarAndFadeIn();
45
createImageHandlers();
56
markActiveSection();
67
refreshRateCalculations(document.getElementById("rrRTSS"));
78
});
89
window.onscroll = updateProgressBarAndFadeIn;
910

11+
function setD3D9Year(){
12+
var d3d9Year = document.getElementById("d3d9_year");
13+
var d3d9Date = new Date(2001, 8, 24); // Windows XP RTM date - API is finalized by then
14+
var today = new Date();
15+
var diff = today - d3d9Date;
16+
var years = Math.floor(diff / 31536000000);
17+
d3d9Year.innerHTML = years;
18+
}
19+
1020
function sizeChanged() {
1121
var sidebar = document.getElementsByClassName("left-sidebar");
1222
if (sidebar && sidebar.length > 0) {

sitemap.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<url>
44
<loc>https://performance.moddinglinked.com/falloutnv.html</loc>
55
<priority>1.00</priority>
6-
<lastmod>2024-12-14</lastmod>
6+
<lastmod>2025-01-09</lastmod>
77
</url>
88
<url>
99
<loc>https://performance.moddinglinked.com</loc>

0 commit comments

Comments
 (0)