1,704 questions
1
vote
1
answer
98
views
FPS locked to 61 in glium
As I was messing around with Glium, I made an FPS counter to appear in the terminal, but it seems locked to 61 FPS.
I tried lowering the number of rendered objects, but the result was the same. At ...
0
votes
1
answer
176
views
How do I tell when the screen's refresh rate changes?
I have to repaint the screen every refresh, and matching with the native refresh rate makes smooth animations. It seems the easiest way to get the native refresh rate is via:
Component....
1
vote
0
answers
147
views
three.js: How do I wait for the <canvas> image to update for each render?
Calling renderer.render() in a requestAnimationFrame() loop will often fire faster than the <canvas> element can update its image, making any "true" FPS measurement inaccurate.
In ...
2
votes
0
answers
201
views
Why is ScreenCaptureKit frame capture delayed by more than 16ms at 60 FPS?
I'm using ScreenCaptureKit to capture screen frames at 60 FPS.
To measure capture latency, I display a timer label on the screen using CVDisplayLink, and when each frame is captured, I save the image ...
1
vote
0
answers
88
views
FrameRate function will not return accurate frameRate P5JS
I have this piece of code:
var framerate = 120;
function setup() {
createCanvas(1920, 1080);
frameRate(framerate);
}
function draw() {
clear();
textSize(13);
text(frameRate(), 20, 20);
}
&...
0
votes
0
answers
43
views
FPS is not calculating right in React
FPS calculation is not giving expected number in my react application.
My application looks like this
<Myapp>
<App1>
<FPSComponent />
</App1>
<App2>
<...
1
vote
0
answers
269
views
Is it possible to record video in a flutter application for 60 fps?
I am building a flutter app to record videos but they need to be at 4K and 60 fps. First off, I tried using the native Flutter camera plugin, which supposedly takes in an optional fps paramter, but ...
0
votes
1
answer
57
views
Moving a div in a webpage at perfect constant speed
I would like to move a div at a perfect constant speed.
The following project shows my implementation
https://stackblitz.com/edit/angular-6x9fejz3?file=src%2FAnimationPage%2Fanimation.component.html
...
5
votes
2
answers
414
views
Screen recorder with python
I'm trying to create a screen recording program using Python, but I'm running into some issues. My goal is to be able to set a specific duration (e.g., 10 seconds) and frame rate (e.g., 30 FPS), but ...
3
votes
0
answers
70
views
How to calculate FPS in image classification?
Please, I would appreciate some help and will be grateful for any help.
I have some doubts about how to calculate the frame rate (FPS) in image classification for training an testing routines. I've ...
6
votes
1
answer
229
views
How to request higher refresh rate for animation under Windows dynamic refresh rate?
I'm developing my own toy UI framework in C++ using OpenGL. However, animations seem to be capped at 60Hz when dynamic refresh rate (DRR) is on, whereas I have a display with 120Hz. It seems like the ...
2
votes
1
answer
86
views
How Can I Correctly Delay the Printing of Strings in Windows Command Prompt to Match a Video's FPS?
I made an ASCII video player that runs in the Windows command prompt. However, I am having issues in regards to having the frames print at the same speed (FPS) as the original video.
At first I ...
-3
votes
1
answer
168
views
How can I make the movement in SFML 3.0 less choppy?
My pong implementation is very choppy, and I think it may be because of how I calculate how much the program sleeps. The maximum frame rate is set to 60 and my computer should be able to run this at ...
5
votes
3
answers
655
views
How to achieve smooth frame rate independent animations
I have the following animation/movement that's a simple physics attraction model:
const steps = 25;
const friction = 0.68;
const target = 400; // Pixels
let velocity = 0;
let position = 0;
function ...
1
vote
1
answer
261
views
How to control the speed of objects in my simple game
I am making a game like space invaders in c++ using the win32 api. I am a beginner.
When I increase my games FPS, game objects move faster across the screen. I want objects to move the same speed ...
