nmwsharp / nmwsharp/polyscope

Make vsync optional

Open
#175 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C++
Stars
2.2k
Forks
242
Avg merge
11m
Merged PRs (30d)
1

Description

Right now it's always enabled, but this stops simulation loops from running faster than the refresh rate.

On line 1681 of gl_engine.cpp:
glfwSwapInterval(1); // Enable vsync

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in gl_engine.cpp around line 1681 and inspect how the GLFW swap interval is configured. Make the existing vsync behavior optional, then verify that a simulation loop can run faster than the display refresh rate when vsync is not enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
computer-graphics, performance
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.