home.social

#vnyan — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #vnyan, aggregated by home.social.

  1. My method for comms between #VNyan plugins works well, but feels wrong. Any #CSharp experts want to tell me the correct way?

    The idea is to avoid reflection at runtime by having a function that returns a ref to the actual function which we then assign to a public function that is otherwise a dummy

    For sharing variables this gives us things like Get_GetMainFollowCamActive which returns GetMainFollowCamActive and the same for Set.

    At the other end these are local functions that can be overridden if the other plugin is present, then finally a {get;set;} that calls them

    The relevant bits of code are here:

    Source plugin:
    github.com/LumKitty/VRnyan/blo

    Calling plugin:
    github.com/LumKitty/VNyan-Foll

    Some of these are called multiple times per frame. In my own setup it's 180fps, but in a worst case scenario, someone might need 3600fps

    #dotnet