WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-28-2011, 04:55 AM
sleiN13 sleiN13 is offline
Member
 
Join Date: Dec 2008
Posts: 83
Multiprocessing Process

To get the Multiprocessing.Process functionality working with the vizard python you have to change forking.py

on line 184: if sys.executable.lower().endswith('pythonservice.exe '):
in to
if sys.executable.lower().endswith('winviz.exe'):

or use these lines in the .py file with the Process call and classes:
import sys
sys.executable = "pythonservice.exe"

Both are a bit of a hacky way to get things working. Is there a better way supported by vizard to launch process that run on other cores in your PC?

Another problem is that the launced processes can't import viz. this limits the objects you can access in the other processes. I would understand that you might want to avoid that because vizard classes are not thread-safe but reading out some values like .getPosition(viz.ABS_GLOBAL) would be nice for the other threads.

Is there a way to get the viz functionality working in the other threads?
Reply With Quote
 

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
pass process to CPU shahramy Vizard 0 12-18-2010 10:45 AM
UnrealEd Process Plymouth Vizard 1 08-16-2006 09:33 AM


All times are GMT -7. The time now is 06:05 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Copyright 2002-2018 WorldViz LLC