Home | Reviews | GUIpedia | Forum | Fun500
Jason | memoryWhat 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-03 | 7:42 AM |
Brandon | Re:memoryhttp://theguiblog.com/forum.php?function=view&TID=217 I can summarize: use XMS. | 2010-07-03 | 8:17 AM |
Jason | Re:memoryi set memory from 16 to 32 & it allowed 2 800x600x16 screens, thats sad
can you find out how much each has? | 2010-07-03 | 10:01 AM |
Brandon | Re:memoryI'd recommend using 4-8MB XMS for maximal compatibility. | 2010-07-03 | 10:56 AM |
Todd | Re:memoryIf 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-03 | 11:29 AM |
Jason | Re:memoryWhat about standard DIMming? Chat on MSN? ...or AIM?
MSN: jason woodland @ hot mail . com
AIM: a r ian prince1 01 | 2010-07-03 | 11:55 AM |
Jason | Re:memory ???how many bytes do you need to allocate for 800*600*32 i think ive asked this before | 2010-07-03 | 2:34 PM |
aguma | Re:memorywell it's 800x600, and it's 32 bits per pixel. 32 bits = 4 bytes. so 800x600x4 = 1920000 = 1.92 MB | 2010-07-03 | 5:20 PM |
Brandon | Re:memoryIsn't 24bit actually the same as 32bit screen mode though? | 2010-07-03 | 6:17 PM |
Jason | Re:memoryMy GALAXY doesnt support 24 but only 8, 16 & 32 | 2010-07-04 | 12:04 AM |
Todd | Re:memory32-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-04 | 10:22 AM |
Jason | Re:memoryInteresting. 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-04 | 11:02 AM |
Todd | Re:memoryI 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-04 | 11:22 AM |
Jason | Re:memorySorry, 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-04 | 11:57 AM |
Todd | Re:memoryDo 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-04 | 12:23 PM |
Jason | Re:memoryDamnit im dumb, dont worry, i got it to work. Sizeof(800,601) | 2010-07-04 | 12:59 PM |
BASIC Programming Help
2021 Brandon Cornell