Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Community > Team MacNN > Possibilies for D2OL/TSC

Possibilies for D2OL/TSC
Thread Tools
mikkyo
Senior User
Join Date: Feb 2002
Location: Silly Valley, Ca
Status: Offline
Reply With Quote
Aug 21, 2002, 06:35 PM
 
D2OL and TSC use java as well as vector math.
I found this file it uses for configuring the javaVM
SengentD2OL.app/Contents/MacOS/launch.xen

A few comments down there is the line

# Defines other parameters to pass to the JVM

jvm.params=-Dcom.apple.macos.useScreenMenuBar=true...(and other stuff)


I stuck part of the java tweaks we used in ubero in front of everything else so it looks like

jvm.params=-Xmx300m -Xms100m -Dcom.apple.macos.useScreen...


I have a boatload of ram in the machine i am testing on.
I also launched the app from the Terminal as root with a nice of -20.

/usr/bin/nice -n -20 ./SengentD2ol.app/Contents/MacOS/D2OL &

This lets all the processes that D2OL spawns get a nice of -20, the max.
We shall see if it makes any difference.
Most of the computation stuff is done in the grid/dockwin.exe and I have no idea if that is using java or what but speeding up the other stuff that is done in java can't hurt.

Someone else should try this and see if it helps at all.
You could also just turn on the -server switch or adjust the ram tweak to something your machine can handle if you dont have 512Mb in the machine.

-ugh the new code tag is way too small to read and the size tags dont seem to work. Looks like one would have to go html instead of vB code :-(
     
jbcool
Senior User
Join Date: Apr 2002
Location: In front of monitor above keyboard.
Status: Offline
Reply With Quote
Aug 22, 2002, 11:08 AM
 
Thanks for sharing the information mikkyo.
Tag ur it.
     
mikkyo  (op)
Senior User
Join Date: Feb 2002
Location: Silly Valley, Ca
Status: Offline
Reply With Quote
Oct 6, 2002, 03:41 PM
 
Another thing this file contains is the name of the App for the menu and for the Dock Icon.
I have found it handy when running two insances to rename one version and change the dock name to like D2OL1 and D2OL2.
To do that, edit the line in this file that looks like

"-Dcom.apple.mrj.application.apple.menu.about.name=D rug Design Optimization Lab" "-Xdock:name=Drug Design Optimization Lab"


Change the "Drug Design Optimization Lab" to "D2OL Client 1" or whatever you like for both the apple.menu.about.name and the -Xdock:name.

Now you can tell your versions apart.
Make sure you rename the application to match your new java names.
I leave one at as SengentD2OL.app and change the other to SengentD2OL2.app.
     
Shaktai
Mac Elite
Join Date: Jan 2002
Location: Mile High City
Status: Offline
Reply With Quote
Oct 6, 2002, 07:52 PM
 
Awesome! I am going to benchmark the stock version on my PowerMac 800 for a few days and then give that a try to see if it makes a difference.
     
reader50
Administrator
Join Date: Jun 2000
Location: California
Status: Offline
Reply With Quote
Oct 7, 2002, 12:06 AM
 
I have a gig of RAM on the way, and should have some free time again in a week or two. (crosses fingers)

With a little luck, I can do some testing too, and get the stats / site upgrades rolling again.
     
mikkyo  (op)
Senior User
Join Date: Feb 2002
Location: Silly Valley, Ca
Status: Offline
Reply With Quote
Oct 7, 2002, 04:05 PM
 
Here is a Fix if you are running on Jaguar (Mac OS X 10.2.x)
Quit D2OL Agent and the Drug Design Optimization Lab.
Did you quit D2OL completely? Good.

Control click on the SengentD2OL.app and choose Show Package Contents as above.
Open Contents.
Drag the Info.plist onto TextEdit or double-click it if you have the Property List Editor installed (comes with the Dev Tools).
Be careful while editing this file, don't add any spaces or extra characters between keys.
Go to the last key which is NSUIElement.
Change the 1 to 0, if you are using TextEdit you will see it between the &ltstring&gt tags.
Save.
Quit.
Launch SengentD2OL.
Be glad you have your GUI back.

Bonus points:
Make sure you don't edit this file while the app is running.
While editing the above plist, you can change the CFBundleName and CFBundleGetInfoString to match your client name changes in the launch.xen file, to further remove any confusion when runnign D2OL.
You'll notice they were left as CommunityTSC which is the same app with a different server.
Enjoy!
     
Shaktai
Mac Elite
Join Date: Jan 2002
Location: Mile High City
Status: Offline
Reply With Quote
Oct 7, 2002, 08:58 PM
 
Originally posted by mikkyo:

Be glad you have your GUI back.
It worked!!
Darn you're good Mikkyo. Thanks!
( Last edited by Shaktai; Oct 7, 2002 at 09:12 PM. )
     
jswayze
Fresh-Faced Recruit
Join Date: Jun 2000
Location: Cincinnati, OH USA
Status: Offline
Reply With Quote
Oct 8, 2002, 09:19 AM
 
Mikko, you java mastah! Domo Arigato!
     
   
 
Forum Links
Forum 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
Top
Privacy Policy
All times are GMT -4. The time now is 06:20 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,