Memory preferences - layman's explanation?

For each module, you can set the memory preferences through File->Preferences->“General” tab, but I’ll admit that I know next to nothing about Java or how it works to understand what I’m doing with all this. So could someone help me with a simple explanation with some of this, specifically the following:

“Prefer memory-mapped files for large images?” - what does that mean, and what does it do?

“Disable DirectX D3D pipeline?” - ditto

“JVM initial heap (in MB) / JVM maximum heap (in MB)”
^ This one I understand partially in that you can’t set the max to more than the amount of RAM you have, but how do you determine how much a module needs? For that matter, what does “heap” even mean? Also, is it something that can be set by a module designer, or is it always at the 256/512 default?

Thanks for any help!

Here is a link for memory-mapped files:
en.wikipedia.org/wiki/Memory-mapped_file

Unfortunately, you are asking for much of the content of an advanced
programming / operating-systems course. You may just have to resort to
wikipedia, and other internet sources, until you have obtained the amount of
detail that you can absorb.

Pieter

-----Original Message-----
From: messages-bounces@vassalengine.org
[mailto:messages-bounces@vassalengine.org] On Behalf Of B.J.
Sent: Tuesday, January 25, 2011 10:50 AM
To: messages@vassalengine.org
Subject: [messages] [Module General Discussion] Memory preferences -layman’s
explanation?

For each module, you can set the memory preferences through
File->Preferences->“General” tab, but I’ll admit that I know next to
nothing about Java or how it works to understand what I’m doing with all
this. So could someone help me with a simple explanation with some of
this, specifically the following:

“Prefer memory-mapped files for large images?” - what does that mean,
and what does it do?

“Disable DirectX D3D pipeline?” - ditto

“JVM initial heap (in MB) / JVM maximum heap (in MB)”
^ This one I understand partially in that you can’t set the max to more
than the amount of RAM you have, but how do you determine how much a
module needs? For that matter, what does “heap” even mean? Also, is it
something that can be set by a module designer, or is it always at the
256/512 default?

Thanks for any help!


Read this topic online here:
https://forum.vassalengine.org/t/memory-preferences-laymans-explanation/3602/1

Thus spake “B.J.”:

For each module, you can set the memory preferences through
File->Preferences->“General” tab, but I’ll admit that I know next to
nothing about Java or how it works to understand what I’m doing with all
this. So could someone help me with a simple explanation with some of
this, specifically the following:

“Prefer memory-mapped files for large images?” - what does that mean,
and what does it do?

Most of the memory VASSAL uses is occupied by map images. If you turn
this on, then VASSAL will attempt to store map images outside of its
normal memory area. Sometimes this helps with running large modules.
YMMV. This option will be gone in VASSAL 3.2, as it will no longer be
neccessary.

“Disable DirectX D3D pipeline?” - ditto

This refers to one possible graphic rendering pipeline on Windows,
which can be problematic for some users.

“JVM initial heap (in MB) / JVM maximum heap (in MB)”
^ This one I understand partially in that you can’t set the max to more
than the amount of RAM you have, but how do you determine how much a
module needs? For that matter, what does “heap” even mean? Also, is it
something that can be set by a module designer, or is it always at the
256/512 default?

You determine how much heap a module needs empirically.


J.