Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How we can get this efficiently running with lower computational power ? #22

Open
rushu570 opened this issue Dec 18, 2020 · 4 comments
Open

Comments

@rushu570
Copy link

How we can increase the fps and reduce the lag, on devices with less computational power(<=1050)?

@alezuky
Copy link

alezuky commented Dec 23, 2020

The BarracudaRunner functionalities are the ones that require computational power. They are called every Update cycle at function "UpdateVNectModel()" from that script. I have been trying to call that function not every Update cycle, but once after some Update cycles. This way, we could decrease the lag at the cost of the model being updated with less frequency. However, I get this error when I try to reduce the frequency of the calls:

"
KeyNotFoundException: The given key was not present in the dictionary.
System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) (at <437ba245d8404784b9fbab9b439ac908>:0)
Unity.Barracuda.GenericVars.PeekOutput (System.String name) (at Library/PackageCache/[email protected]/Barracuda/Runtime/Core/Backends/GenericWorker.cs:1004)
Unity.Barracuda.GenericVarsWithReuse.PeekOutput (System.String name) (at Library/PackageCache/[email protected]/Barracuda/Runtime/Core/Backends/GenericWorker.cs:1106)
Unity.Barracuda.GenericVars.GatherInputs (Unity.Barracuda.Layer forLayer) (at Library/PackageCache/[email protected]/Barracuda/Runtime/Core/Backends/GenericWorker.cs:951)
Unity.Barracuda.GenericWorker+d__29.MoveNext () (at Library/PackageCache/[email protected]/Barracuda/Runtime/Core/Backends/GenericWorker.cs:176)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at <480508088aee40cab70818ff164a29d5>:0)
"

Would anyone have any idea on how to do it?

@alezuky
Copy link

alezuky commented Jan 12, 2021

Hi, does anyone have any update on this?

@alezuky
Copy link

alezuky commented Jan 14, 2021

Ok, guess I found a possible solution. If anyone is still interested, just let me know here and I can explain it.

@Drod917
Copy link

Drod917 commented Mar 11, 2021

@alezuky Hello, I'm interested in your solution; I'm trying to get a proof of concept working using this on a mobile device so any tips are welcome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants