You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running a game at 120 fps in a 120 fps monitor. When the game is a borderless window mode fps are capped to 60, when I'm in windows mode with the game maximized it runs at 60 fps but if the game isn't maximized and it's on a window with the same resolution it runs at 120 fps.
It doesn't happen with all apps, for example Notepad doesn't have the same issue, but windows 11 calculator does.
from windows_capture import WindowsCapture, Frame, InternalCaptureControl
import time
# Initialize WindowsCapture with the specific window name "VRChat"
capture = WindowsCapture(
cursor_capture=False,
draw_border=False,
monitor_index=None,
window_name="Calculator",
)
# Initialize variables for FPS calculation
frame_count = 0
start_time = time.time()
# Called every time a new frame is available
@capture.event
def on_frame_arrived(frame: Frame, capture_control: InternalCaptureControl):
global frame_count, start_time
# Update frame count
frame_count += 1
# Calculate and print FPS every second
if time.time() - start_time >= 1:
print(f"FPS: {frame_count}")
frame_count = 0
start_time = time.time()
# Called when the capture item closes
@capture.event
def on_closed():
pass
# Start the capture session
capture.start()
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm running a game at 120 fps in a 120 fps monitor. When the game is a borderless window mode fps are capped to 60, when I'm in windows mode with the game maximized it runs at 60 fps but if the game isn't maximized and it's on a window with the same resolution it runs at 120 fps.
It doesn't happen with all apps, for example Notepad doesn't have the same issue, but windows 11 calculator does.
Beta Was this translation helpful? Give feedback.
All reactions