Hello Ventuzians!
THE FORUMS ARE CLOSED!

Please join our discord server HERE!! << click me :D

We are shutting our Ventuz Forum, but don't worry, it will all be archived for you to search in if you have a query. From now on, please add all your comments, questions or observations into our Discord Server

Thanks for the great time - see you on discord!!
Dee, Karol, Daniel and the whoooole Product and Support team!

make a http request without render stalls

Q and A about functionality and how to solve a special task for your application.

Moderator: Support

Post Reply
Stefan Go

make a http request without render stalls

Post by Stefan Go » 23 May 2014, 17:08

Hi Ventuz development Team! I hope you're fine!

I wrote a smal Script in Ventuz to get external data with a http request. It's similar like this:

http://msdn.microsoft.com/de-de/library ... 80%29.aspx

But every time i call the method of the Script Node for the http request the render stalls for some frames. Is there any way to do a async loading of the data like e.g. the movie node does to avoid render stalls? Do you have some example code for that kind of use?

Greetings from the wild event jungle outside! ;)

Stefan Goerke

User avatar
Karol
Posts: 640
Joined: 10 Jan 2012, 12:07

Re: make a http request without render stalls

Post by Karol » 26 May 2014, 10:05

Hi Stephan!

You have to program the async processing in your Script on your own!
There is no general 'Async' mode for the Script node!
A good starting point for async programming is: http://www.albahari.com/threading/
Please note that unhandled exceptions in a thread started from the Script node will crash Ventuz! So be careful!
And AFAIK the HttpWebRequest class has also some async methods.

Best Regards
Karol

Post Reply