University of Southern CaliforniaUSC
USC ICT TwitterUSC ICT FacebookUSC ICT YouTube

Launching SB standalone for the 1st time | General SmartBody Discussion | Forum

Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Launching SB standalone for the 1st time
November 21, 2016
10:50 am
Avatar
Member
Members
Forum Posts: 6
Member Since:
August 24, 2015
sp_UserOfflineSmall Offline

I started up SB through going to SmartBody\bin and running the sbgui.exe file.

First, a console window popped up and then the API appeared.

As I was reading past that point in the SB manual (to see what I can do next now that I have it all fired up!) I realized that my laptop's fan was going crazy, as if there was a huge load on the CPU.

Is this supposed to happen; i.e. is starting up SB standalone and having it on such a massive task for a Windows machine?

November 23, 2016
10:19 am
Avatar
Admin
Forum Posts: 980
Member Since:
December 1, 2011
sp_UserOfflineSmall Offline

By default, SmartBody will run on a realtime clock as fast as possible. You can set a target FPS to, say, 30 like this:

 

scene.getSimulationManager().setSleepFps(30)

 

which will cause SmartBody to sleep after completing a simulation step, which should significantly reduce the load on the system. 

Ari

November 30, 2016
10:18 am
Avatar
Member
Members
Forum Posts: 6
Member Since:
August 24, 2015
sp_UserOfflineSmall Offline

Thanks Ari

I should enter this command at the very beginning (after launch) through File, Window, Command Window before doing anything else. Correct?

Another little question: That initial sbgui.exe terminal window is supposed to stay there throughout, while the standalone application is launched and running. Right?

December 5, 2016
10:42 am
Avatar
Admin
Forum Posts: 980
Member Since:
December 1, 2011
sp_UserOfflineSmall Offline

Yes, you could do this after launch, or if you could enter into a script that you run with command line arguments:

 

sbgui -scriptpath /path/to/my/script -script myscript.py

Forum Timezone: America/Los_Angeles

Most Users Ever Online: 733

Currently Online: anton.1988dmon, hastingswiggins7, MyraRoberso52, jessicaross68, Nasreen Zamir, skillfulgala4636, jeff345qs, ledretrofitlights, subduedcorps4964, JaimePatrick54, Herbertnes, OliveSantos53
59 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

jwwalker: 80

jyambao: 51

rbaral: 47

adiaz: 30

WargnierP: 29

lucky7456969: 28

mbarros: 28

avida.matt: 26

JonathanW: 24

laguerre: 23

Member Stats:

Guest Posters: 67

Members: 55092

Moderators: 3

Admins: 4

Forum Stats:

Groups: 1

Forums: 5

Topics: 429

Posts: 2348