Log In  

Is there a good way to see the total token count of a cartridge that is #including code from external files?

I know you can save the cart as .p8.png to get the includes flattened and then see the token count, but that's kind of a painful workflow when you're optimising code for token count.

If not @zep can you add a way to do this? Maybe a new mode for the stat tracker in the code editor?

P#94151 2021-06-27 21:03

1

Five seconds after posting I've finally discovered the INFO command which does what I need. Never mind then I guess.

P#94152 2021-06-27 21:06

while true do info() end

is a useful command to create a continuously updating display if you don't mind polling constantly.

P#94153 2021-06-27 21:09 ( Edited 2021-06-27 21:09)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-29 13:10:57 | 0.006s | Q:12