Search
Setup for Free
S
Silk.NET
•
3y ago
Lyris the Kitori
so if *anything* takes any time in your loop, it will run too slow
so if
anything
takes any time in your loop
, it will run too slow
Silk.NET
Join
A Discord server for the Silk.NET - your one-stop-shop for high-speed .NET multimedia, graphics, and compute. FOSS.
1,790
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
K
King
•
8/6/23, 10:24 PM
Alright now that I have a sensibly slow updating FPS counter lets see
.
.
.
With all the fixes to breaknecksleep
:
500 requested
- Getting 335
- 358 FPS
/UPS
Without the fixes
:
500 requested
- Getting overall 335 with changes differing from fractions to
+
- 2fps
/ups
K
King
•
8/6/23, 10:25 PM
So it seems using the original stuff is less
"bouncy
" in terms of stably staying at a certain FPS
/UPS rate
, but still lower than the requested number
L
Lyris the Kitori
so if *anything* takes any time in your loop, it will run too slow
L
Lyris the Kitori
OP
•
8/6/23, 10:25 PM
its likely because of this
K
King
•
8/6/23, 10:26 PM
Ah yeah
.
.
. I am doing lots of fucky things with string
.format and using a queue for averaging of FPS
L
Lyris the Kitori
OP
•
8/6/23, 10:27 PM
its not a queue problem
, its a
"you are doing anything at all
" problem
, and perksey
's BreakneckSleep doesnt account for extra time already spent
K
khitiara
•
8/6/23, 10:27 PM
yeah it needs a bit of tweaking there
L
Lyris the Kitori
OP
•
8/6/23, 10:27 PM
https://github.com/ppy/osu-framework/blob/master/osu.Framework/Timing/ThrottledFrameClock.cs
osu
!framework has code to handle this better
M
Maxine
•
8/6/23, 10:29 PM
isn
't osu xna
L
Lyris the Kitori
OP
•
8/6/23, 10:30 PM
that hasnt been the case since like
L
Lyris the Kitori
OP
•
8/6/23, 10:30 PM
2015
?
M
Maxine
•
8/6/23, 10:30 PM
oh
L
Lyris the Kitori
OP
•
8/6/23, 10:30 PM
also osu
!framework isnt based on the stable codebase
M
Maxine
•
8/6/23, 10:30 PM
monogame
? fna
?
L
Lyris the Kitori
OP
•
8/6/23, 10:30 PM
its a full rewrite
M
Maxine
monogame? fna?
L
Lyris the Kitori
OP
•
8/6/23, 10:30 PM
no
M
Maxine
•
8/6/23, 10:30 PM
sharpdx
?
L
Lyris the Kitori
OP
•
8/6/23, 10:30 PM
no
M
Maxine
•
8/6/23, 10:30 PM
slimdx
?
L
Lyris the Kitori
OP
•
8/6/23, 10:30 PM
no
M
Maxine
•
8/6/23, 10:30 PM
opentk
?
K
King
•
8/6/23, 10:30 PM
Also I feel like I
'm forgetting to clean something up
, cause i
"m getting protected memory exceptions whenever I close the window
M
Maxine
opentk?
L
Lyris the Kitori
OP
•
8/6/23, 10:30 PM
a fork of it
, yes
A
Aqua
•
8/6/23, 10:30 PM
lwjgl
?
L
Lyris the Kitori
OP
•
8/6/23, 10:30 PM
called osuTK
M
Maxine
•
8/6/23, 10:30 PM
why peppy need to fork opentk
L
Lyris the Kitori
OP
•
8/6/23, 10:31 PM
¯\_(ツ)_/¯
M
Maxine
•
8/6/23, 10:31 PM
this is why lazer never gonna be done
M
Maxine
•
8/6/23, 10:31 PM
/j
L
Lyris the Kitori
OP
•
8/6/23, 10:31 PM
osu
!stable also uses a fork of OpenTK
L
Lyris the Kitori
OP
•
8/6/23, 10:31 PM
infact thats where the fork comes from
L
Lyris the Kitori
OP
•
8/6/23, 10:31 PM
the fork originates from stable
M
Maxine
why peppy need to fork opentk
L
Lyris the Kitori
OP
•
8/6/23, 10:33 PM
M
Maxine
•
8/6/23, 10:38 PM
oh
K
King
•
8/6/23, 10:38 PM
Huh
, interestingly the lower you set the loop cap
, the less jittery it becomes
M
Maxine
•
8/6/23, 10:38 PM
fair cop
K
King
Huh, interestingly the lower you set the loop cap, the less jittery it becomes
L
Lyris the Kitori
OP
•
8/6/23, 10:38 PM
yes that makes sense
, given
"FPS
" is an inverse relationship with actual time
M
Maxine
•
8/6/23, 10:39 PM
higher framerate increases the precision requirement
K
King
•
8/6/23, 10:39 PM
600
= 300
- 400 more or less
60
= Stays pretty much glued to 55 most of the time
L
Lyris the Kitori
OP
•
8/6/23, 10:39 PM
its actually the same amount of error
, its just that fps is a really bad measure in this case
L
Lyris the Kitori
OP
•
8/6/23, 10:40 PM
you should be measuring frametimes
M
Maxine
•
8/6/23, 10:40 PM
is your frame counter accurate
K
King
•
8/6/23, 10:40 PM
I am measuring frametimes
, and getting the FPS from that
(1f
/Frametime
)
M
Maxine
•
8/6/23, 10:40 PM
uhh
M
Maxine
•
8/6/23, 10:40 PM
hm
L
Lyris the Kitori
OP
•
8/6/23, 10:40 PM
what i mean is in this case
, dont convert to FPS
C
chairclr
•
8/6/23, 10:41 PM
you should use frametime for your measurements rather than fps
L
Lyris the Kitori
OP
•
8/6/23, 10:41 PM
^
C
chairclr
•
8/6/23, 10:41 PM
1
/x is evil
L
Lyris the Kitori
OP
•
8/6/23, 10:41 PM
FPS is a bad measure when it comes to precision of timings
C
chairclr
•
8/6/23, 10:41 PM
non linear relationship
:grr
:
Next page