Language runtime RAM vs TIC-80 RAM #2092
-
Why use the dedicated ram of TIC-80, when runtimes provide an huge heap to work with? In the manual its stated that there is 96KB of RAM. (https://tic80.com/learn) On the other hand, the JS runtime can create a way bigger heap. Line 1042 in ca3bb11 https://duktape.org/api.html#duk_create_heap Since Nothing is stopping the user from creating a 1000000 item array. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Please point me to where it still says this. This is no longer true, all that memory is declared RESERVED now for future use by the hardware (see Wiki). One should indeed primary use runtime memory and variables. The only reason to use real RAM would be some type of "high performance" hardware tricks you wanted to do by perhaps coming RAM to and from the VRAM in large chunks with |
Beta Was this translation helpful? Give feedback.
-
I can make a PR for |
Beta Was this translation helpful? Give feedback.
-
See #2094 |
Beta Was this translation helpful? Give feedback.
Please point me to where it still says this. This is no longer true, all that memory is declared RESERVED now for future use by the hardware (see Wiki). One should indeed primary use runtime memory and variables. The only reason to use real RAM would be some type of "high performance" hardware tricks you wanted to do by perhaps coming RAM to and from the VRAM in large chunks with
memcpy
which the API can do natively orders of magnitude faster than a runtime.