Answer Overflow Logo
Change Theme
Search Answer Overflow
GitHub
Add Your Server
Login
Home
Popular
Topics
Gaming
Programming
Nolram
Explore posts from servers
C
C#
CD
Cloudflare Developers
Posts
Comments
C
C#
•
Created by Nolram on 9/9/2024 in
#help
P/Invoke boolean call always returns true in Release builds
I see - thank you for the help and apologies for my stupidity.
13 replies
C
C#
•
Created by Nolram on 9/9/2024 in
#help
P/Invoke boolean call always returns true in Release builds
Yeah that makes sense actually, not sure why I didn't anticipate that
13 replies
C
C#
•
Created by Nolram on 9/9/2024 in
#help
P/Invoke boolean call always returns true in Release builds
Ohhh yeah that makes sense... I keep forgetting the C ABI has no concept of a bool
13 replies
C
C#
•
Created by Nolram on 9/9/2024 in
#help
P/Invoke boolean call always returns true in Release builds
Oh are native bools and managed bools not the same data?
13 replies
C
C#
•
Created by Nolram on 9/9/2024 in
#help
Getting a (very) high resolution timer in C#
Alright, makes sense, thank you!
35 replies
C
C#
•
Created by Nolram on 9/9/2024 in
#help
Getting a (very) high resolution timer in C#
Okay then I'll just use stopwatch, thank you!
35 replies
C
C#
•
Created by Nolram on 9/9/2024 in
#help
Getting a (very) high resolution timer in C#
That seems good enough for me I'd think?
35 replies
C
C#
•
Created by Nolram on 9/9/2024 in
#help
Getting a (very) high resolution timer in C#
What's the precision on it?
35 replies
C
C#
•
Created by Nolram on 9/9/2024 in
#help
Getting a (very) high resolution timer in C#
No, I just want to get the time since the application started running as precise as possible
35 replies
C
C#
•
Created by Nolram on 9/9/2024 in
#help
Getting a (very) high resolution timer in C#
Principally it's all based on this quite well known article:
https://gafferongames.com/post/fix_your_timestep/
35 replies
C
C#
•
Created by Nolram on 9/9/2024 in
#help
Getting a (very) high resolution timer in C#
Since that's how we can get deltas for actually interpolating stuff
35 replies
C
C#
•
Created by Nolram on 9/9/2024 in
#help
Getting a (very) high resolution timer in C#
But we need to run the interpolation for every single drawn frame
35 replies
C
C#
•
Created by Nolram on 9/9/2024 in
#help
Getting a (very) high resolution timer in C#
Well, it's just an example - I'd ideally like to be able to run at any tickrate without issues. A more likely target is 90 or 120 ticks per second
35 replies
C
C#
•
Created by Nolram on 9/9/2024 in
#help
Getting a (very) high resolution timer in C#
Though even there we're looking at milisecond intervals.
35 replies
C
C#
•
Created by Nolram on 9/9/2024 in
#help
Getting a (very) high resolution timer in C#
Maybe I could get away with a lower resolution actually? Since the main thing I need this for is interpolation between states between game ticks
35 replies
C
C#
•
Created by Nolram on 9/9/2024 in
#help
Getting a (very) high resolution timer in C#
Be it Linux or Windows
35 replies
C
C#
•
Created by Nolram on 9/9/2024 in
#help
Getting a (very) high resolution timer in C#
Well, my primary platform is Desktop computers for now
35 replies
C
C#
•
Created by Nolram on 9/9/2024 in
#help
Getting a (very) high resolution timer in C#
Or at least milisecond decimals.
35 replies
C
C#
•
Created by Nolram on 9/9/2024 in
#help
Getting a (very) high resolution timer in C#
Really? No option for microsecond-level timings?
35 replies
C
C#
•
Created by Nolram on 9/9/2024 in
#help
Getting a (very) high resolution timer in C#
I do know it's technically possible to use Win32 QueryPerformanceCounter, but I would generally prefer to use something native to C# if possible, since otherwise I'll have to re-write adaptations for ever platform I want to support
35 replies