Home | Reviews | GUIpedia | Forum | Fun500


Jasonmemory
What has the most memory?  RAM, EMS or XMS?  And which one is most common from EMS or XMS if one of them have the most memory.
2010-07-037:42 AM

BrandonRe:memory
http://theguiblog.com/forum.php?function=view&TID=217
I can summarize: use XMS.
2010-07-038:17 AM

JasonRe:memory
i set memory from 16 to 32 & it allowed 2 800x600x16 screens, thats sad  can you find out how much each has?
2010-07-0310:01 AM

BrandonRe:memory
I'd recommend using 4-8MB XMS for maximal compatibility.
2010-07-0310:56 AM

ToddRe:memory
If you're using QB, you'll get more out of EMS/XMS. XMS is more conventional since EMS was typically used when memory wasn't readily available beyond 1 MB. If you use FB, you should have direct access to it via DPMI.
2010-07-0311:29 AM

JasonRe:memory
What about standard DIMming?  Chat on MSN? ...or AIM? MSN: jason woodland @ hot mail . com AIM: a r ian prince1 01
2010-07-0311:55 AM

JasonRe:memory ???
how  many bytes do you need to allocate for 800*600*32 i think ive asked this before
2010-07-032:34 PM

agumaRe:memory
well it's 800x600, and it's 32 bits per pixel. 32 bits = 4 bytes. so 800x600x4 = 1920000 = 1.92 MB
2010-07-035:20 PM

BrandonRe:memory
Isn't 24bit actually the same as 32bit screen mode though?
2010-07-036:17 PM

JasonRe:memory
My GALAXY doesnt support 24 but only 8, 16 & 32
2010-07-0412:04 AM

ToddRe:memory
32-bit color is actually a misnomer: http://en.wikipedia.org/wiki/Color_depth#32-bit_color . 24-bit is the only capable resolution at the moment since there are 256 values for each color (R,G,B) and thus 256^3 for one pixel is 2^24.
2010-07-0410:22 AM

JasonRe:memory
Interesting.  The problem is is that there is a function to tell how much to use but at the bottom there is a blank line, i use sizeof(800,600), should i just use sizeof(800,601)?
2010-07-0411:02 AM

ToddRe:memory
I don't think Sizeof can return the size of an array. The docs just say it returns variable and data type dimensions in bytes. Personally, I would do something like this: Dim Screen(800, 600, 3) As Byte ' 800x600 x 3 (for R, G, and B color values) Unfortunately I don't know of a way to allocate space for an array using a 3-byte data type (unless you define one) but you could use "UShort" or "UInteger" in place of "Byte" for increased color depth.
If there's a blank line, are you starting at 1 or 0 for the Y coordinate?
2010-07-0411:22 AM

JasonRe:memory
Sorry, i should have noted that i was using the future library, im going to use XMS, to allocate xms memory i just type
Handle% = AllocateXMS(SizeOf(800, 600)) 'Automatically takes color depth into account To Deallocate the handle i type
DeallocateXMS Handle% but when i use SizeOf it leaves one horizontal line out at the bottom (im a perfectionist) I checked freexms and theres loads left, what do i need to add to SizeOf to get that extra line? cheers m473
2010-07-0411:57 AM

ToddRe:memory
Do you start at 0 and go to 599 for Y coordinates? It might also be the color mode. Try 16 since that's a more reasonable convention than 24 since some older VESA/SVGA cards don't reach that high.
2010-07-0412:23 PM

JasonRe:memory
Damnit im dumb, dont worry, i got it to work. Sizeof(800,601)
2010-07-0412:59 PM

BASIC Programming Help


2021 Brandon Cornell