Home › Forums › Syphon › Syphon Implementations – User › Server with bad frames on Unity Pro
Tagged: unity server
- This topic has 5 replies, 2 voices, and was last updated 8 years, 5 months ago by
rsodre.
-
AuthorPosts
-
September 24, 2012 at 6:01 pm #6346
rsodre
ParticipantI’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.movIt 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?
September 26, 2012 at 11:53 am #6354Brian Chasalow
Participantare you deallocating the syphon server or some such, when you load a new ‘1 minute level’ ? I haven’t tested this in depth.
September 26, 2012 at 7:17 pm #6357rsodre
ParticipantThe 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.September 27, 2012 at 6:00 pm #6358rsodre
ParticipantFound 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?
September 27, 2012 at 7:46 pm #6360Brian Chasalow
Participantinteresting- 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.
September 28, 2012 at 4:00 am #6361 -
AuthorPosts
- You must be logged in to reply to this topic.