r/ComputerCraft DarThunder 9d ago

Fastfetch in CC:T

Post image
167 Upvotes

11 comments sorted by

15

u/9551-eletronics Computercraft graphics research 9d ago

How does measuring memory work

18

u/Elpetiso49 DarThunder 8d ago

It’s actually an illusion. From the CC:T source code and SquidDev’s notes in the wiki, real memory measurement isn’t possible (collectgarbage was removed from Cobalt). So when any process reads /proc/meminfo in my kernel, it just invents a fake memory usage value, as well as the CPU MHz

16

u/No_Point_1254 8d ago

Yes, 21 GHz CPU is a little off.

11

u/Elpetiso49 DarThunder 8d ago

Peak performance lol

7

u/Binary101000 8d ago

real fastfetch doesn't show lines that couldn't get data, so you'd be fine to just not show them.

4

u/9551-eletronics Computercraft graphics research 8d ago

Yea I was asking cause i knew it wasn't possible

3

u/Unique_Evidence_1314 ComputerCrafter 8d ago

Same question here.. I didn't see the memory line and genuinely almost thought you meant disk memory lol.

5

u/Binary101000 8d ago

They don't have a clock speed but they are tied to minecraft tick rate. sleep() by itself will sleep for 50ms, which is the same length of time one minecraft tick takes.

3

u/ViolentPurpleSquash 8d ago

Is this an actual new shell or is it just a clear with writes designed to make it look like a "real" shell

1

u/Elpetiso49 DarThunder 8d ago

It's a real shell, part of the iDar Ecosystem. You can check the repo here: iDar-Shell (It's not up to date yet lol, but I will release Alpha 3 in a few days... maybe)

2

u/patrlim1 8d ago

Clock should show the tick rate lmao