Server with bad frames on Unity Pro

Home Forums Syphon Syphon Implementations – User Server with bad frames on Unity Pro

Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #6346
    rsodre
    Participant

    I’m having some problems with a Syphon Server on Unity 3D Pro 3.5.5, maybe someone has seen it, before I dig in the code.

    There’s a lot of missing frames, they appear as color gradients on clients.

    I’m using the new beta, but also recompiled the plugin on 10.7.4 (the xcode project is 10.8) from trunk, and the same happens.

    My game is really short, it has eight 1-minute levels, I recorded a 2-level session to show the problem. It starts starts ok, then begin losing (not-so) random frames, then the 2nd level is almost all. When it reaches the and and go back to the start, it gets ok, then start skipping again. Here’s the clip:
    http://vaivendo.com.br/syphon/onefinger_syphon.mov

    It is clear that the first missing frames happen when the player hit some obstacles, simple colliders that spawn some particles. I have 8gb of RAM, and the game plays smoothly here, besides of the server problem.

    Was this the problem with the last beta?

    #6354
    Brian Chasalow
    Participant

    are you deallocating the syphon server or some such, when you load a new ‘1 minute level’ ? I haven’t tested this in depth.

    #6357
    rsodre
    Participant

    The main camera and syphon server is never touched, except for effects that I tweak all the time.

    All the levels are on a single scene, created when the game starts.
    During the game I just hide elements, spawn particles and re-spawn game elements on game/level reset.

    #6358
    rsodre
    Participant

    Found the problem, we need this after Graphics.Blit() on SyphonServerTexture.cs:

    Syphon.SafeMaterial.SetPass(0);

    To understand it, I did a good polish on this script.
    I’m also fixing some GUI problems I’m having and will check in after I finish my project.

    btw, who made this Unity plugin?

    #6360
    Brian Chasalow
    Participant

    interesting- send me an email if you’d like when you have things updated, I’ll take a look – brian@chasalow.com – i made it. That’s very interesting that the SetPass(0) fixed your issues.

    #6361
    rsodre
    Participant

    Probably the last active material was not good for syphon.

    Now I’m going trough hell with multiple cameras, gui and fbos. ALMOST there.
    I’ll send you the sources before check in.

    • This reply was modified 8 years, 5 months ago by rsodre.
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.