Replies: 9 comments
-
Please could you tell me (using a printf or terminal output), the value returned by method DisplayController.getViewPortHeight(), in both cases (8 and 16 colors)? |
Beta Was this translation helpful? Give feedback.
-
printf says for [EDIT] My Free Memory with this sketch is 81324 Bytes and 24464 Free DMA Memory bytes on VGA16 ( 90348/33872 bytes at VGA8). So I think if I wouldnt do any Sound (and no Sound-components get compiled I could archive the memory for 480 lines with 16 Colors). But when I have to decide....I would take Sound and only 8 Colors for CP/M :) Or do you think its another problem beside the free memory? With VGA_640x240_60Hz and VGA16 I do get the full 240 Lines. |
Beta Was this translation helpful? Give feedback.
-
yes, it can just allocate 388 of 480, so it cannot allocate 92 lines. Note that 92 lines require 92*640/2= 30 KBytes. Current version has a new parameter in fabglconf.h, named FABGLIB_MINFREELARGESTBLOCK. It contains the largest block of DMA memory that must be kept free. About the sound generator, now it is very optimized, and it takes a few hundred bytes to work. A question: could you tell me the free memory just before "DisplayController.setResolution" ? |
Beta Was this translation helpful? Give feedback.
-
with 10000 the VGA32 only resets in a loop
before setresolution the memory looks like with ESP32-Core v1.0.6 I do get 480 Lines and my rest-memory is So - in the end I will go with 8 colors to get no memory problems with ESP32-Core v2.x.x :( But another lesson learned... |
Beta Was this translation helpful? Give feedback.
-
well, so we have lost about 36K with 2.x versions.. too bad! I don't know how to recover this memory just with optimizations! I guess 20000 is a good one then. |
Beta Was this translation helpful? Give feedback.
-
Hmm - but then free DMA Memory was only around 7.700 bytes :( |
Beta Was this translation helpful? Give feedback.
-
Setting 20000 means you will have 20K free anyway. DMA could be useful (I guess) only in special cases (WiFi? BLE?). |
Beta Was this translation helpful? Give feedback.
-
also, why not use an ESP32 with PSRAM for your emulator? You'll forget all RAM problems (think to my PC IBM Emulator that runs without problems at 640x480...) |
Beta Was this translation helpful? Give feedback.
-
for the VGA32-Port - there is already 8MB PSRAM on the VGA32, but I dont know how to mak euse of it ;) For the Memory-setting of 20000: |
Beta Was this translation helpful? Give feedback.
-
Thanks to some of your latest changes now I do get a picture/sync with
ESP32-Core v2.x.x and the VGA16-Controller
To get get 640x480x60 (for 80x25 chars) I do use
but with the VGA16-Controller the Screen-Height it seems that the 25 Lines are NOW more compressed than with the VGA8-Controller.
For both Controllers my Monitor does show as Info 31.5KHz, 60Hz
and 640x480
Do I miss something in my code or does have the VGA16-Controller now some other timing. As I recall from the past there were no difference in the Screen-Height.
I think the setfont-Command (for 8x19) would only be availabe in the VGATextController?
Beta Was this translation helpful? Give feedback.
All reactions