Graphics On/Off Switch

Case number:699969-2005548
Opened by:phi16
Opened on:Thursday, August 2, 2018 - 05:34
Last modified:Friday, September 7, 2018 - 15:21

Quite a while ago we tested and began using the technique of making View settings minimal, e.g. View:Line, View Color: Hydro, Deselecting anything that had been selected, View Sidechains: Don't Show (Fast), to increase the speed by minimizing the work of drawing the protein while a recipe is running. Then, the entire protein image is moved off-screen to further minimize the work the CPU does while running a recipe.

Suggestion: Have a View setting which does all of this in one selection, turning off everything that is graphics related and might use CPU cycles to draw something. The goal is to minimize the work that is not productive. At then end of a recipe, a drawing can be made and this setting deselected.


(Thu, 08/02/2018 - 05:34  |  7 comments)

bertro's picture
User offline. Last seen 24 weeks 3 days ago. Offline
Joined: 05/02/2011
Groups: Beta Folders

I don't know if you are on mac or pc.

For info: on pc, you can achieve that effect by minimizing the client without changing any of the view settings or moving the protein off-screen.

phi16's picture
User is online Online
Joined: 12/23/2008

Wow, I never tried that. I'm on Mac and I can minimize the entire client down to the three red-yellow-green buttons. Has anyone done a test to see if this, indeed, helps speed things along? Thanks Bertro.

jeff101's picture
User offline. Last seen 1 day 43 min ago. Offline
Joined: 04/20/2012
Groups: Go Science

If this suggestion is implemented, I would like to be able to switch the graphics on & off while a recipe is running, not just when Foldit is between recipes.

brow42's picture
User offline. Last seen 1 year 37 weeks ago. Offline
Joined: 09/19/2011
Groups: None

jflat will have to give the most correct answer for recent clients. He's what I remember.

There are usually 2 threads, one for rosetta calculations and one for drawing. On linux/osx, if you minimize the client, the the drawing thread does nothing and the calculation thread continues.

I think this is now also true for Windows. However, on older versions, scripts, particularly GUI scripts, would stop while the screen was minimized. I think they fixed that.

brow42's picture
User offline. Last seen 1 year 37 weeks ago. Offline
Joined: 09/19/2011
Groups: None

Also, there was the ridiculous situation where all the animations, particularly the void popping, would be saved up until you restored the window. So you had to turn off voids and exposeds before minimizing.

phi16's picture
User is online Online
Joined: 12/23/2008

I tried the following experiment using Gary Rebuild Worst 3.1 since it does is exactly the same thing every time it is run from the same starting point.

I start two separate tracks, with identical protein in identical starting position.

In one I use VIEW menu to open every possible graphic feature that I can think of that might slow it down. I check every box, I select Hydro/Score+CPK, Cartoon, Show All. I do not select Hide GUI.

With the other track I deselect everything and minimize window to absolute minimum as bertro suggested.

I start both together and stop both after 1 hour.

There was a 7% increase in speed with track 2 where everything is minimized including the window.

Joined: 09/24/2012
Groups: Go Science

Don't ask me why:

-on Linux (Ubunto 16), if I change session (user), all scripts stop running. If I simply unlog (leaving the session active) scripts continue running but it seems slower (I didn't measure).

-on Mac and Windows, minimizing everything and the views accelerates the performance as proved by phi16. (so: I do the same on Linux but I didn't test the effect).


Developed by: UW Center for Game Science, UW Institute for Protein Design, Northeastern University, Vanderbilt University Meiler Lab, UC Davis
Supported by: DARPA, NSF, NIH, HHMI, Amazon, Microsoft, Adobe, Boehringer Ingelheim, RosettaCommons