|
Memory available for bitmaps |
alex glez
Member #16,757
October 2017
|
486/5000 Thank you very much, greetings |
Chris Katko
Member #1,881
January 2002
|
Are you in 32-bit mode? (Program/compiled in 32-bit, 32-bit compiled library, Windows 32-bit version, or CPU is 32-bit) If so, that's the most memory you can consume in a single app: -----sig: |
Audric
Member #907
January 2001
|
The above answer is correct, but I wonder how you reach 2Gb with so few images. |
alex glez
Member #16,757
October 2017
|
Hi. If it is in 32 bits. Now I understand everything. Limit 2 GB. It is a program that reads a memory card with 200 photos for example, reduces them to miniatures and adds a layer (joins the two images) and you can move the layer, zoom and many other things. Then export to a normal JPG. Everything works but I did not know about the limit. It emulates a bit what digital laboratories like NORITSU or EPSON minilab do. Thanks for the help. I will save the thumbnails in the SSD and not in memory. |
Edgar Reynaldo
Major Reynaldo
May 2007
|
I would preload the thumbs, and only load one full image at a time on demand. You may have a memory leak as well. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
Chris Katko
Member #1,881
January 2002
|
If you can just switch to 64-bit mode, that'll fix your problem with the least hassle. Edgar Reynaldo said: You may have a memory leak as well. Yeah, if he's loading bitmaps but doesn't need them all in memory at once, then he needs to either free them (or he forgot to free them) so it's ballooning in size with each new bitmap. -----sig: |
alex glez
Member #16,757
October 2017
|
Yes, I am trying to do it, I reduce it to miniatures and then I load them in 4 divided into 4 pages in 4 .. although it works very well and fast so, I am still trying to solve an error .. patience .. uff |
Neil Roy
Member #2,229
April 2002
|
You are limited by the amount of memory on your video card when it comes to textures. Not just your system memory. Allegro 5 creates video bitmaps by default, so unless you specify memory bitmaps, it will all go to your video card. If it has limited memory, you will have problems I would imagine. Also, your operating system will use much of that RAM for itself, so you don't have the entire 2G to yourself. All other programs running are using some as well. If you don't NEED video bitmaps, perhaps specify them as being memory bitmaps? --- |
alex glez
Member #16,757
October 2017
|
I will select the RAM memory, so I will have more certainty of where the bitmap is created. It seems that I have already corrected the problem of memory, now it's time to perfect the program a bit more and that's it. By the way, I have another question, although I do not know if I have to open another thread, it is the next one .. My program sometimes thinks that the mouse button is pressed even if it is not true and the only way I have to clean the buffer (I do not know if it works like the keyboard) is like this ... q000: al_get_mouse_state(&raton); if (raton.button) { goto q000; } |
|