Heres a question for Windows-Chess programmers..
How would a WIndows chess-program set its upper limit for
hash-table size? As far as I can see there is no simple
way to force allocation of non-virtual RAM for chess
hash-tables - because Windows uses virtual disk-ram.
In fact you dont really want to 'force' RAM allocation, since
it messes up multitasking. GlobMemFree is no use - it tells
you how much VIRTUAL RAM you have - including disk-spool space.
The only idea I can think of is this - there are some INT
calls that tell you how much 'real' RAM you have - take these
figures, knock a meg or so off for Windows, and set this as
the max selectable by a user "Set hash size" option.
Then, when the user selects a figure, perform an access-speed
test on the size of mem requested, and if access is slow,
you guess that the user is requesting too much, and pop-up
a warning message to that effect..
This method seems to work fine in proctice, but its a bit
inelegent - has anyone got any better ideas?
Thanks!
--
PC SOLUTIONS - PO BOX 954, BOURNEMOUTH BH7 6YJ, ENGLAND
EMAIL 10064...@compuserve.com