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 answers
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
- I need the BIRT.war that is compatible with Java 17 and Tomcat 10
- Creating global Class holder
- No method found for class java.lang.String in Kafka
- Issue edit a jtable with a pictures
- getting error when trying to launch kotlin jar file that use supabase "java.lang.NoClassDefFoundError"
- Does the && (logical AND) operator have a higher precedence than || (logical OR) operator in Java?
- Mixed color rendering in a JTable
- HTTPS configuration in Spring Boot, server returning timeout
- How to use Layout to create textfields which dont increase in size?
- Function for making the code wait in javafx
- How to create beans of the same class for multiple template parameters in Spring
- How could you print a specific String from an array with the values of an array from a double array on the same line, using iteration to print all?
- org.telegram.telegrambots.meta.exceptions.TelegramApiException: Bot token and username can't be empty
- Accessing Secret Variables in Classic Pipelines through Java app in Azure DevOps
- Postgres && statement Error in Mybatis Mapper?
Related Questions in OPTIMIZATION
- Optimize LCP ReactJs
- Efficiently processing many small elements of a collection concurrently in Java
- How to convert the size of the HTML document from 68 Kb to the average of 33 Kb?
- Optimizing Memory-Bound Loop with Indirect Prefetching
- Google or-tools soft constraint issue
- How to find function G(x), and make for every x, G(x) always returns fixed point for another function F(G(x))
- Trying to sort a set of words with the information theory to solve Worlde in Python but my program is way to slow
- Do conditional checks cause bottlenecks in Javascript?
- Hourly and annual optimization problem over matrix
- Sending asynchronous requests without a pre-defined task list
- DBT - Using SELECT * in the staging layer
- Using `static` on a AVX2 counter function increases performance ~10x in MT environment without any change in Compiler optimizations
- Is this a GCC optimiser bug or a feature?
- Performance difference between two JavaScript code snippets for comparing arrays of strings
- Distribute a list of positive numbers into a desired number of sets, aiming to have sums as close as possible between them
Related Questions in JAVAFX
- Function for making the code wait in javafx
- JavaFX build generating a blank gui with primary view and secondary view buttons
- JavaFX SwingNode instantiation fails with exception
- I want to understand modularity in java. When compiling my app I have a ResolutionException
- Importing Jython into a JavaFX application
- gluon attach audio doesn't play any sound on android
- Using javaFx, how to distinguish between return-key and enter-key on the numpad?
- Displaying a Hashmap in a TableView in JavaFX
- HBox doesn't fill parent GridPane when rotated by 90 degrees
- Run java program
- Setting up MongoDB with JavaFX in Intellij, MongoDB external Jar files throwing errors
- JavaFX not support GPU hardware decoding?
- JavaFX resize ImageView in center of BorderPane
- In Javafx how to access object of a component which is under an overridden method? Problem related with TableView
- How to style rounded corners of a TextArea in JavaFX
Related Questions in PARAMETERS
- Recursive calls to function passed as a parameter of another method via Consumer interface
- Opening sheet in SwiftUI view
- Leave Request Automation System
- control javac options per class from annotation processor
- SSRS use a dynamic SQL query with parameter
- how to customize evaluation metric in Autogluon?
- How to pass -id parameter to get-process from pipeline?
- How to pass string array to snowflake stored procedure from C#?
- Should I pass a parameter as a const in a function if I don't intend to modify it?
- Power BI Report Builder =Today() function in datetime parameter causing it to gray out
- No route found in Shopware6/symfony
- Why wont variables in the list print to 3 decimal places?
- How do I remove positional parameters in bash?
- I cannot export parameter estimates for different groups using proc model in SAS
- Parameterise ADF Activity timeout in ARM template parameters definiton file?
Related Questions in VRAM
- How to accurately track GPU VRAM usage?
- How can I fetch VRAM and GPU cache size in Linux?
- How to delete a list of FastAI models from memory?
- Access Violation in Vulkan Memory Allocator
- How to resolve the Problem in the increase n vram?
- nvidia-smi vs torch.cuda.memory_allocated
- How to see VRAM of google tpu?
- Can i clear up gpu vram in colab
- Given the number of parameters, how to estimate the VRAM needed by a pytorch model?
- Three.JS VRAM memory leak when adding removing THREE.Geometry to scene
- how to find out amount of VRAM used by the model itself? (LSTM)
- How to get Taskmanager's GPU memory usage from C# code
- Question Related to Vram In Windows server 2019
- TensorFlow GPU and CPU offloaded ops segregation
- x86 Assembly : How to move code to video memory and execute the code?
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?
Popular Tags
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)
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.