Dynamic RAM Cache

1. Introduction

2. How to setup Dynamic RAM Cache

3. Q&A

*GUI in this document refers to Waifu2x-Extension-GUI


Introduction

When processing videos, the GUI needs to write and read large amounts of data(Video Frames) from the hard drive, which will reduce the lifespan of your hard drive.

Now, with Dynamic RAM Cache, the GUI will be able to write and read data from the RAM. Which is much more faster than hard drive, and will protect the lifespan of your hard drive. (RAM doesn't have any write or read limitation.)

In short, the GUI will use ImDisk Toolkit to create a Dynamic RAM Disk, and redirect the video caches(Video Frames) to the RAM Disk.


How to setup Dynamic RAM Cache

⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠

Before you setup the Dynamic RAM Cache, we must recommend you to Enable the [Process video by segment] and reduce the [Segment duration], this will prevent the cache size from exceeding the maximum size of the RAM cache.

And change the [Frame Codec] to "JPEG" to reduce the cache size.

⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠

1.Install ImDisk Toolkit. GUI already have ImDisk Toolkit installer included, you can click the install button next to the ImDisk installation folder label, than the ImDisk Toolkit will be fully installed on your PC. (The GUI will ask you for administrator permission, please grant it to ensure that the GUI can function normally.)

Please make sure you Fully Installed ImDisk Toolkit if you wanna install it manually.

2.Change the Drive Letter to an unused drive letter.

3.Adjust the Drive Size, this will be the maximum size of the RAM cache, we recommand adjust it to the size of the Available RAM when PC is idle.

4.Click Attach to attach the RAM disk to your system. (The GUI will ask you for administrator permission, please grant it to ensure that the GUI can function normally.)

5.Enable Dynamic RAM Cache


Q&A

Will the RAM disk start occupying my RAM immediately after it's created?

NO, it will only start occupying the RAM after GUI start writing cache into the RAM disk. And it will release RAM after the files were deleted. The RAM Disk is Dynamic. The size of the RAM it occupies will dynamically change according to the size of the files in it.


How to "delete" the RAM Disk?

Change the Drive Letter to the RAM Disk you created, then click the Detach button. The RAM disk will be detached, all files inside will be deleted and the RAM it occupies will be released.