I am working on a JavaFX program and want to speed up my application. After reading about large images and issues related to them here, I decided to follow the advice there and allocate more VRAM. I am not quite sure how to do this, however, although I have an idea of how to do it I would like specific instructions to do so. The parameter I need to use is Dprism.maxvram=XX. I am using the eclipse IDE and would like to know where in it do I insert the parameter and will the parameter be carried when exporting to a jar file?
Allocating more VRAM to Javafx Program
2k Views Asked by Politic Revolutionnaire At
2
There are 2 best solutions below
0
James_D
On
The JavaFX deployment guide specifies mechanisms to pass parameters to the JVM on startup. These will work if you launch the application either as a "self-contained application bundle", or if you launch via web start. In short, you can use
<fx:platform javafx="8.0+">
<fx:property name="prism.maxvram" value="90M"/>
</fx:platform>
in your JavaFX Ant build file, or use the option
-BjvmProperties=prism.maxvram=90M
to the javapackager tool.
Related Questions in JAVA
- Add image to JCheckBoxMenuItem
- How to access invisible Unordered List element with Selenium WebDriver using Java
- Inheritance in Java, apparent type vs actual type
- Java catch the ball Game
- Access objects variable & method by name
- GridBagLayout is displaying JTextField and JTextArea as short, vertical lines
- Perform a task each interval
- Compound classes stored in an array are not accessible in selenium java
- How to avoid concurrent access to a resource?
- Why does processing goes slower on implementing try catch block in java?
- Redirect inside java interceptor
- Push toolbar content below statusbar
- Animation in Java on top of JPanel
- JPA - How to query with a LIKE operator in combination with an AttributeConverter
- Java Assign a Value to an array cell
Related Questions in OPTIMIZATION
- Does compiler optimize operation on const variable and literal const number?
- Optimizing for Social Leaderboards
- 3D FFT with data larger than cache
- Optimum directory structure for large number of files to display on a page
- How to make faster queries on my mysql table?
- Xib taking long time (>1s) to load. UIFont cache seems to blame
- How to speed up string comparisons in an array with a for loop?
- How to load all symbols from shared library on start up?
- Cython speed vs numpy
- Improve Speed of Piecewise Function in MATLAB
- How to check that all values are equal in array using recursion?
- PHP split string into known tokens and remaining words add to single-worded array
- Python: why is my O(n) slowing down as it progresses?
- Hint indexes to mysql on Join
- Error When Compiler Optimizations are on
Related Questions in JAVAFX
- JAVAFX error incompatible types: FXMLLoader cannot be converted to node
- How to resolve browser crash issue in JavaFX?
- JavaFX can't play mp3 files
- JavaFX 8 Load external FXML
- All my JavaFX TextFields have lines in them
- Javafx TableView with custom row color using CSS
- Java for Mobile and Desktop Development
- Create Dialogs with Default Images in JavaFX (Info/Warning/Error)
- In javaFx is it possible to make rounded corner of a Rectangle except right-bottom?
- using javafx 8 (java 8 install) How to extend Label.setTooltip Display time to 20secs (while mouse is inside Tooltip)
- javaFX : How to periodically load information from db and show it on a Label?
- How to enable right click option in JavaFX Pane?
- Using ReactFX to resize stage when nodes become invisible?
- How to change collapse and expand icon for a particular treeview in javafx?
- is it possible to set a javaFX Pane origin to bottom-left?
Related Questions in PARAMETERS
- Creating a parametrized field name for a SELECT clause
- JavaScript - use link parameter to create text in the H1 tag of another page
- Iframe not passing url parameters
- Passing a lambda expression as parameter to a method?
- Joomla Get menu id from names
- OrientDB - SQL command to pass array value as parameter in OrientDB function
- Class enumerator values cannot be passed as parameters to another class's function
- Passing a predicate that was passed in as a parameter
- How to test MvvmCross MvxCommand<int> with NUnit
- How can I add another parameter to a drop down box?
- pass variables to jade template
- what does DefaultEdge.class mean in jgrapht example
- SSRS parameter Datatypes
- PHP | Change function inside class
- How to define a class that handles implicit conversion to bool when it uses a string variable in its constructor?
Related Questions in VRAM
- Allocating more VRAM to Javafx Program
- Three.JS VRAM memory leak when adding removing THREE.Geometry to scene
- How to delete a list of FastAI models from memory?
- how to find out amount of VRAM used by the model itself? (LSTM)
- DirectX RenderContext RAM/VRAM
- Write custom pixels/vram in Unity3D
- nvidia-smi vs torch.cuda.memory_allocated
- Can i clear up gpu vram in colab
- Use shared GPU memory with TensorFlow?
- Can't get opengl OutOfMemory error 1285
- Question Related to Vram In Windows server 2019
- How well do opengl drivers handle large texture arrays in limited VRAM
- Access Violation in Vulkan Memory Allocator
- x86 Assembly : How to move code to video memory and execute the code?
- Set custom base address of video memory VGA/VESA in assembly
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
In Eclipse, to change build arguments, go to Run -> Run configurations... and then select Arguments.
Add
-Dprism.maxvram=whateverto your VM arguments (not Program arguments, these are theargs[]passed to yourmainmethod)This will not carry over to your .JAR file, because parameters must be passed through the command line and are not stored in the file itself.
You could create a batch file to run the JAR for you with your specified arguments, though.
Example batch file:
Then you'd just have to double click your bat file to run your JAR with 90MB of VRAM.