Giter VIP home page Giter VIP logo

Comments (9)

keijiro avatar keijiro commented on May 29, 2024

Which platform are you using?

from asynccapturetest.

TuncayCakmak avatar TuncayCakmak commented on May 29, 2024

Dear Keijiro,

i have tried it on 2 different PCs. One is Windows 10 Home (GTX 1080) and the other one is Windows 10 Pro (GTX 1160 Super).

Best

from asynccapturetest.

keijiro avatar keijiro commented on May 29, 2024

Thanks for clarification.

How about adding encoded.Dispose(); after this line?

from asynccapturetest.

TuncayCakmak avatar TuncayCakmak commented on May 29, 2024

Dear Keijiro,

it seems that "encoded.Dispose();" solves the issue, ill make additional tests. I have also realised that the energy management "turn off display after 10 min" can lead to other issues. Ill continue with tests and report here the results.

I would kindly ask you, how can i use your script to reduce the 1 Second waiting time to a minimum? Do i need to integrate something like "request done" into the callback?

Best and thank you!

from asynccapturetest.

keijiro avatar keijiro commented on May 29, 2024

how can i use your script to reduce the 1 Second waiting time to a minimum?

Just remove the yield return new WaitForSeconds(1); line.

from asynccapturetest.

TuncayCakmak avatar TuncayCakmak commented on May 29, 2024

Dear Keijiro,

if i remove "yield return new WaitForSeconds(1);" i get this error:

ERROR:
InvalidOperationException: The Unity.Collections.NativeArray'1[System.Byte] can no longer be accessed, since its owner has been invalidated. You can simply Dispose() the container and create a new one.

I tried instead of "yield return new WaitForSeconds(1);" this "yield return new WaitForSeconds(0.07f);"

I get the Error if a roughly go below "yield return new WaitForSeconds(0.07f);" , for example "yield return new WaitForSeconds(0.05f);"

Do you know why this happens?

Best

from asynccapturetest.

TuncayCakmak avatar TuncayCakmak commented on May 29, 2024

Dear Keijiro,

i found now a solution by using this
AsyncGPUReadbackRequest request = AsyncGPUReadback.RequestIntoNativeArray(ref _buffer, _rt.flip, 0);
yield return new WaitUntil(() => {

Thank you very much for your time. I think everything works now well.

Later on i will test again what happens if the Monitor turns off after 10 minutes (Energy management) and will report it as soon as i have the results. Thank you so much for your time and have a great day!

Best

from asynccapturetest.

keijiro avatar keijiro commented on May 29, 2024

I fixed the memory leak in the latest commit.

from asynccapturetest.

keijiro avatar keijiro commented on May 29, 2024

I'm closing this issue now. Please reopen it for further problems.

from asynccapturetest.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.