• Karna@lemmy.mlOP
    link
    fedilink
    arrow-up
    9
    ·
    6 days ago

    Variable refresh rate (VRR) allows your display to match the framerate of an image source, such as a game — and doing so prevents screen tearing. Support for VRR has been added to the cosmic-comp compositor and Displays Settings. You can set VRR to be either always on or automatic, which will enable VRR for fullscreen content.

    Source: https://blog.system76.com/post/cosmic-alpha-4

      • OsrsNeedsF2P@lemmy.ml
        link
        fedilink
        arrow-up
        10
        ·
        6 days ago

        Back when I was a wee bit Java noob, I was trying to write a RuneScape bot to play Soul Wars. I had a basic recursive pathfinding algo for figuring out how to walk around the map, but it blew out of memory very quickly (each tile has 4 options, do that recursively, etc). So I added caching. Anyways, I never cleared the caching. So after 20 minutes of running the script, you had like 2GB of allocated RAM calculating the best path from any 2 tiles in the minigame.

        Great times. No amount of language safety features would have saved me from that stupidity.