Skip to content

Commit 4d1b2d4

Browse files
authored
Updated market share stats in Feature Table. Made them only include DX12 systems. (#24)
1 parent 9199341 commit 4d1b2d4

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
const ArchStats = {"Unkonwn": 0.172, "RDNA3": 0.0079, "GCN4": 0.0213, "RDNA": 0.0098, "RDNA2": 0.0384, "Vega": 0.0068000000000000005, "Gen7.5": 0.002, "Gen9": 0.0023, "Gen9.5": 0.011800000000000001, "Pascal": 0.0815, "Turing 16": 0.0889, "Maxwell2": 0.0065, "Ampere": 0.25179999999999997, "Turing 20": 0.06860000000000001, "Ada": 0.2306}
1+
const ArchStats = {"GCN3": 0.0006999999999999999, "GCN4": 0.025500000000000002, "RDNA3": 0.0066, "Unkonwn": 0.06079999999999999, "GCN1": 0.0015, "GCN2": 0.0002, "RDNA": 0.0114, "RDNA2": 0.0374, "Vega": 0.0095, "Gen7.5": 0.0024000000000000002, "Gen9": 0.0036, "Gen8": 0.001, "Gen9.5": 0.0136, "Xe": 0.020800000000000003, "Maxwell1": 0.0061, "Kepler": 0.0025, "Fermi": 0.0002, "Pascal": 0.082, "Turing 16": 0.0847, "Fermi1": 0.0003, "Maxwell2": 0.009, "Turing 20": 0.0719, "Ampere": 0.2509, "Ada": 0.2477, "X1": 0.0003}
22
export default ArchStats

source/frontend/assets/js/website_feature_table.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,7 @@ function UpdateTableBody(table) {
922922
if (!featureName.startsWith("Table"))
923923
AddTooltipForTable(featureHeader, featureName, { alignOutsideVertical: true });
924924
else if (featureName == "TableMarketShare")
925-
AddTooltipForTable(featureHeader, "Market share in the Steam Hardware Survey. This is an underestimate.", { alignOutsideVertical: true });
925+
AddTooltipForTable(featureHeader, "Market share in the Steam Hardware Survey among DirectX 12 System. This is an underestimate.", { alignOutsideVertical: true });
926926

927927
featureRow.appendChild(featureHeader);
928928

source/frontend/scripts/update-steam-stats.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
"Generation 8.0" : "Gen8",
2323
"Generation 9.0" : "Gen9",
2424
"Generation 9.5" : "Gen9.5",
25+
"Generation 12.1/Generation 12.2" : "Xe",
26+
"Generation 12.2" : "Xe",
2527
"Kepler" : "Kepler",
2628
"Kepler 2.0" : "Kepler",
2729
"Maxwell" : "Maxwell1",
@@ -37,6 +39,7 @@
3739
"Tesla 2.0" : "Tesla2",
3840
"Turing" : "Turing 20",
3941
"Turing 16" : "Turing 16",
42+
"X1" : "X1",
4043
"Unknown" : "Unkonwn",
4144
}
4245

@@ -46,12 +49,14 @@
4649

4750
converted_arch_stats = {}
4851

49-
with open('../../external/SteamHWSurveyGPUArchStats/arch_stats_latest.csv', newline='') as csvfile:
52+
with open('../../external/SteamHWSurveyGPUArchStats/arch_stats_dx12_latest.csv', newline='') as csvfile:
5053
reader = csv.reader(csvfile)
5154
for row in reader:
5255
if row[0] == "gpu architecture":
5356
continue
5457
arch = row[0]
58+
if (arch not in arch_name_mapping):
59+
print(f"Unknown architecture: {arch}")
5560
arch = arch_name_mapping.get(arch, arch)
5661
percentage = float(row[1])
5762
converted_arch_stats.setdefault(arch, 0.0)

source/website/feature_table.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)