AdamSakuru

[Null_Value]
Veteran
Joined
Mar 14, 2014
Messages
314
Reaction score
172
First Language
English
Primarily Uses
N/A
Code:
Object.keys(ImageManager.cache._inner)
So I'm aware you can put this into the log to show every image being cached. But is there a way to check the total memory usage?
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,178
Reaction score
10,798
First Language
Czech
Primarily Uses
RMMV
If you're asking about individual images or about just images, not really. Javascript is a high level language and doesn't have any native access to computer components whatsoever.
For the whole process it's
Code:
console.log (process.memoryUsage());
 

Latest Threads

Latest Posts

Latest Profile Posts

I think after I get this game done, I'm going to take a long vacation from game development. It feels great to see the coding skills get better and it is fun - but god it is also so exhausting.
Just advertising that I released version 0.9 of my game yesterday, for feedback purposes. My first game or creative endeavor ever :D Would be cool if someone tries it out!
An overall view of my full set of sprites so far, this was really fun to work in this past year! :kaopride:
1653056206274.png

Even though the game is cancelled, I'm still doing art in my spare time and seeing how it'd look.

It's a lot of fun. Wish I could be an artist!

Forum statistics

Threads
121,971
Messages
1,145,563
Members
160,249
Latest member
PhantomRaptorDS
Top