Asynchronous loading

All information about Magic Particles: news, question, comments, etc.

Asynchronous loading

Postby Tadas » Fri Mar 07, 2014 8:55 am

Hello,
I am trying to implement asynchronous .ptc loading and getting random crashes (usually on Magic_CreateFirstRenderedParticlesList). For example emitter A is loaded and being rendered while emitter B is still being loaded (on another thread) and sometimes program just crashes there so I asume some kind of static list/array is used. Could you list functions which might not be thread-safe so I could use mutex to protect their calls? Also do you have any plans to make this API thread-safe?
Tadas
 
Posts: 1
Joined: Fri Mar 07, 2014 8:35 am

Re: Asynchronous loading

Postby Odin_KG » Fri Mar 07, 2014 1:19 pm

Hello
Currently API does not support multithreading. I am about to add multithreading in future.
User avatar
Odin_KG
Administrator
Administrator
 
Posts: 255
Joined: Sat May 09, 2009 10:53 pm

Re: Asynchronous loading

Postby Pomakhin » Thu Apr 20, 2017 3:25 pm

Hi! What's the status of multithreading support in MP?
Pomakhin
 
Posts: 1
Joined: Thu Apr 20, 2017 3:22 pm

Re: Asynchronous loading

Postby Odin_KG » Thu Apr 20, 2017 4:25 pm

Hi! What's the status of multithreading support in MP?

Unfortunately, I did not add multithreading yet. But trails, beams, 3d particles and a lot of other features were added to the version 3.xx.
User avatar
Odin_KG
Administrator
Administrator
 
Posts: 255
Joined: Sat May 09, 2009 10:53 pm


Return to Magic Particles

Who is online

Users browsing this forum: No registered users and 8 guests

cron