Crosshair cursor isn't smooth?

You shouldn’t use a hardware cursor for a screen center cross hair, as the cursor can update at a different frequency than your rendered frame amongst other potential problems.

Instead you should draw a cross hair in the middle and use glfwSetInputMode to disable the cursor.

To help with rendering a cross hair you could use NanoVG which can do some very fancy 2D rendering, or dear ImGui which though it’s main purpose is for debug UI can also be used to draw anti-aliased 2D shapes.

1 Like