Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  -XX:-OptoScheduling -XX:-Inline  (Read 3769 times)
0 Members and 1 Guest are viewing this topic.
Offline javazoid

Junior Devvie

Where's Flender?

« Posted 2004-03-11 05:23:28 »

Playing with the Server JVM I found these inviting switches

-XX:-OptoScheduling -XX:-Inline

Expecially OptoScheduling takes me back to the good old SAS/C Amiga days, where a similar switch was used to create better code by scheduling the 68040 instructions for better execution speed.

I did my late-nigh tests and I discovered that -XX:-OptoScheduling -XX:-Inline gives me some extra speed expecially in math intensive code.
Sadly I didn't find any documentation about the switches.

Offline ChrisRijk

Senior Newbie

Optimise or Die

« Reply #1 - Posted 2004-03-11 11:45:58 »

Apart from some references in bug reports, I could't find anything on these either...

On a little Mandelbrot app I have, -XX:-OptoScheduling sped up 1.4.1 by about 10% and 1.4.2_03 had no difference (possibly a bit slower). -XX:-Inline doesn't seem to exist in 1.4.2._03 though -XX:+Inline works (but doesn't help performance)
Offline nuttygamer

Junior Newbie

Java games rock!

« Reply #2 - Posted 2004-03-12 12:13:12 »

I tried to use the setting and I was amazed that my project fps jumped from usual 30+ fps to 60 fps. Thanks for your info. Smiley
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline javazoid

Junior Devvie

Where's Flender?

« Reply #3 - Posted 2004-03-12 15:54:55 »

Almost the same numbers here. Speed improves a huge lot both in int[] handling and in fpu math.

Now the question is why Sun does not distribute the server JVM in their JRE ?

It could be a nice option even for end users to switch from a sloppy client JVM to a fast server one.

Please someone post an RFE!

Offline andyl

Senior Newbie

Java games rock!

« Reply #4 - Posted 2004-05-03 11:42:45 »

Looking at the source code for the Hotspot server vm (1.4.2), regarding 'OptoScheduling' there is a comment above this optimisation option when appled to x86 architectures:

"Peephole and CISC spilling both break the graph, and so makes the scheduler sick."

Sounds like you might break your program?

For anyone interested in what options are available in the server vm, as well as which ones are turned on and off by default, go download the community source 1.4.2 source code and look at:


(Aside : Interestingly whilst looking at this source, I see no evidence to back up the claims that have been made that the vm will optimise code depending upon the type of x86 processor (AMD, Intel etc), apart from selecting SSE if available. Is this another one of those "theoretically the vm could ..." claims, where in reality it doesn't? Hmmmm....)

Pages: [1]
  ignore  |  Print  

EgonOlsen (79 views)
2018-06-10 19:43:48

EgonOlsen (59 views)
2018-06-10 19:43:44

EgonOlsen (78 views)
2018-06-10 19:43:20

DesertCoockie (261 views)
2018-05-13 18:23:11

nelsongames (159 views)
2018-04-24 18:15:36

nelsongames (158 views)
2018-04-24 18:14:32

ivj94 (901 views)
2018-03-24 14:47:39

ivj94 (162 views)
2018-03-24 14:46:31

ivj94 (813 views)
2018-03-24 14:43:53

Solater (177 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!