Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tearing in short-lived dynamic lights at high FPS #368

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Nov 13, 2024

  1. Fix tearing in short-lived dynamic lights at high FPS

    The tearing occurred because the dynamic light was shown for a single frame,
    but when running above the monitor refresh rate, less than a single frame
    was actually visible on screen. Even when V-Sync was used, the dynamic
    light was visible for a very small portion of time on screen depending
    on the monitor refresh rate.
    
    The fix works by ensuring each dynamic light is visible for at least 32 milliseconds,
    which roughly matches the appearance of dynamic lights as they were in
    vanilla Quake 2 on period-appropriate hardware (running at 30-35 FPS).
    
    This uses the same fix as Yamagi Quake 2.
    Calinou committed Nov 13, 2024
    Configuration menu
    Copy the full SHA
    87b7631 View commit details
    Browse the repository at this point in the history