OpenComputers icon indicating copy to clipboard operation
OpenComputers copied to clipboard

IDEA Support to additional GPU VRAM

Open bebreshka opened this issue 4 months ago • 16 comments

In my calculations, I want to make a fast-refreshing screen, and for this I calculated that a double buffer for 160x50 would require 125 KB of RAM, but I don't want to keep it in the RAM where the processor works, because there is a GPU for this, but I found out that only 3200 bytes are available for all GPU levels. Can you change this somehow? Or where can I change this in the config? I edited the lines in gpu {} in the application.conf section, but that didn't solve my problem.

Image

bebreshka avatar Aug 25 '25 19:08 bebreshka

How did you get to this result ? Anyway, this option already exists, the issue is invalid. You can find the config option at the bottom of the config file.

Image

ff66theone avatar Aug 26 '25 14:08 ff66theone

Maybe you misunderstood, but I mentioned that this did not solve my problem; only 3200 bytes of VRAM are free at all GPU levels.

bebreshka avatar Aug 28 '25 20:08 bebreshka

Maybe you misunderstood, but I mentioned that this did not solve my problem; only 3200 bytes of VRAM are free at all GPU levels.

Can you give me the test.lua script so I can reproduce on my side ?

ff66theone avatar Aug 28 '25 20:08 ff66theone

Image

I also noticed a bug: if you increase vramSizes and turn away from the screen, the output disappears, and even if you break it and put it back, the only thing that helps is restarting the computer.

bebreshka avatar Aug 30 '25 12:08 bebreshka

Code:

local component = require("component") local gpu = component.gpu

-- Всего VRAM (не включая экран) print("Total VRAM:", gpu.totalMemory())

-- Свободное VRAM print("Free VRAM:", gpu.freeMemory())

bebreshka avatar Aug 30 '25 12:08 bebreshka

Is it possible to get the full 24-bit color palette by changing the configuration? Or is this not implemented?

bebreshka avatar Aug 30 '25 13:08 bebreshka

Maybe you misunderstood, but I mentioned that this did not solve my problem; only 3200 bytes of VRAM are free at all GPU levels.

Can you give me the test.lua script so I can reproduce on my side ?

Image

Sorry for jumping to conclusions. I played around with it a bit more, and the VRAM really did increase. Now the level 3 GPU has 125 KB, which will greatly simplify the creation of my engine for this mod :D

bebreshka avatar Aug 30 '25 23:08 bebreshka

well then that issue can be closed I think, unless the functions' implementations still have flaws somehow

ff66theone avatar Aug 31 '25 16:08 ff66theone

well then that issue can be closed I think, unless the functions' implementations still have flaws somehow

Could you check the bug I mentioned above? When I increase vramsizes the monitors of some sizes sometimes stop showing the picture if I turn my back or move away for a couple of chunks. Maybe it's because I have the server on hdd and sometimes lags tps, and it affected the monitors

bebreshka avatar Sep 01 '25 21:09 bebreshka

no that sounds more like faulty culling to me for the "move away" part I think there an option to fade the display out if it was more conservative there would be more tiles drawn and more performance loss, but heh it's in your peripheral vision/far away anyway so why worry

ff66theone avatar Sep 02 '25 06:09 ff66theone

I meant that at some random moment on a large monitor, the picture just disappears right before your eyes when you’re literally standing 1–2 blocks away from the monitor, and it only shows up again after restarting the PC. If you revert the changes to vramsizes in the config, this bug goes away. Also, some kind of error shows up in the chat and asks to send it to support, something like “failed to transform classes”.

Image

latest.log

bebreshka avatar Sep 04 '25 14:09 bebreshka

also, I saw that you were using TLauncher, please use another launcher as this one has spyware allegations and shady origins As for transformer errors, I don't really know, could be a mod conflict or something (though even for me these Forge features are strange)

ff66theone avatar Sep 07 '25 18:09 ff66theone

also, I saw that you were using TLauncher, please use another launcher as this one has spyware allegations and shady origins As for transformer errors, I don't really know, could be a mod conflict or something (though even for me these Forge features are strange)

No, it's not a tlauncher. Only the name remains; it's an open-source legacy launcher.

bebreshka avatar Sep 12 '25 17:09 bebreshka

Oh you mean TL Legacy ? Well then you should be good, I guess...

ff66theone avatar Sep 13 '25 18:09 ff66theone

Is this normal? The server with 4 GB of RAM worked for 17 days, and then suddenly crashed.

Image

bebreshka avatar Sep 19 '25 09:09 bebreshka

Looks like a memory leak to me

ff66theone avatar Sep 20 '25 13:09 ff66theone