Skip to content

Commit 374d3b6

Browse files
committed
Fix FPS limiter cards
1 parent 42a913d commit 374d3b6

File tree

4 files changed

+18
-12
lines changed

4 files changed

+18
-12
lines changed

css/flip.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ button,
88
border-radius: 3px;
99
padding: 0.4em;
1010
text-align: center;
11-
font-size: 0.8em;
11+
font-size: 1.1em;
1212
transition: all 187ms Cubic-Bezier(0, 0, 0, 1);
1313
}
1414

@@ -43,7 +43,6 @@ button:active,
4343
max-width: 8em;
4444
min-height: 1em;
4545
width: 100%;
46-
font-size: 1.1em;
4746
transition: all 187ms Cubic-Bezier(0, 0, 0, 1);
4847
}
4948

css/styles.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,11 @@ footer {
211211
max-width: 40% !important;
212212
}
213213

214+
.width-auto {
215+
width: fit-content !important;
216+
-moz-width: fit-content !important;
217+
}
218+
214219
textarea {
215220
padding: 1em !important;
216221
color: white;

falloutnv.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1190,7 +1190,7 @@ <h4>Installation and configuration</h4>
11901190
<li>Set its <b>Application Detection Level</b> to <strong>Low</strong>.</li>
11911191
<li>Use the calculator below to determine your <strong>optimal FPS limit</strong><sup><a title="Warning" href="#annotation7">[7]</a></sup> setting. You can find your exact refresh rate <b><a href="https://www.testufo.com/refreshrate" target="_blank">here</a></b>.</li>
11921192

1193-
<div class="card-basic">
1193+
<div class="card width-auto">
11941194
<div class="center" style="margin: 10px;">
11951195
<button id="fixedButton" onclick="setMode('fixed')" class="active">Fixed Refresh</button>
11961196
<button id="vrrButton" onclick="setMode('vrr')">VRR</button>

js/fpsCalculator.js

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function calculateFPS() {
5757

5858
if (!rr || rr < 60) {
5959
results.innerHTML = `
60-
<div class="card card-red">
60+
<div class="card-red">
6161
<p>Enter a valid refresh rate of 60Hz or higher.</p>
6262
</div>
6363
`;
@@ -70,16 +70,16 @@ function calculateFPS() {
7070
// clamp VRR upper recommendation to MAX_RECOMMENDED_FPS
7171
const rrVRRClamped = Math.min(rrVRR, MAX_RECOMMENDED_FPS);
7272
results.innerHTML = `
73-
<div class="card card-basic">
73+
<div class="card-basic">
7474
<p>Recommended FPS Limit Range: Any value from 48* to ${rrVRRClamped}</p>
7575
</div>
76-
<div class="card card-yellow">
76+
<div class="card-yellow">
7777
<p>
7878
*Your VRR range typically starts at 48 FPS, but some displays support 30 or even 1.<br>
7979
Check <a href="https://www.nvidia.com/en-us/geforce/products/g-sync-monitors/specs/" target="_blank">this list</a> to know your model's VRR range. Check the product page if it's not listed there.
8080
</p>
8181
</div>
82-
<div class="card card-green">
82+
<div class="card-green">
8383
<p>
8484
Choose the highest value your system can maintain consistently.
8585
</p>
@@ -96,7 +96,7 @@ function calculateFPS() {
9696
if (!commonRates.includes(rr) && rr > 75) {
9797
const better = findNearestRateWithGoodDivisor(rr);
9898
warning = `
99-
<div class="card card-red">
99+
<div class="card-red">
100100
<p>
101101
Your refresh rate (${rr}Hz) has divisors that make it suited for VRR more than fixed refresh.<br>
102102
Look into enabling VRR if your display supports it. If not, consider switching to <b>${better}Hz</b> instead if you can't hold performance close to the suggested value - you can do this in the <b>Nvidia Control Panel</b> or <b>Adrenalin</b> settings.
@@ -106,16 +106,18 @@ function calculateFPS() {
106106
}
107107

108108
results.innerHTML = `
109-
<div class="card card-basic">
110-
<p>Recommended FPS ${usableDivisors.length === 1 ? 'Limit' : 'Limits'}: ${recommendations} ${usableDivisors.length === 1 ? '' : '(choose one)'}</p>
109+
<div class="card-basic">
110+
<p>
111+
Recommended FPS ${usableDivisors.length === 1 ? 'Limit' : 'Limits'}: ${recommendations} ${usableDivisors.length === 1 ? '' : '(choose one)'}
112+
</p>
111113
</div>
112-
<div class="card card-red">
114+
<div class="card-red">
113115
<p>
114116
Even with New Vegas Tick Fix, the game can still have issues at high framerates, the calculator already accounts for this and won't return any value higher than 120.
115117
</p>
116118
</div>
117119
${warning}
118-
<div class="card card-green">
120+
<div class="card-green">
119121
<p>
120122
Choose the highest value your system can maintain consistently.
121123
</p>

0 commit comments

Comments
 (0)