felixrieseberg / windows95

πŸ’©πŸš€ Windows 95 in Electron. Runs on macOS, Linux, and Windows.
Other
22.25k stars 1.29k forks source link

Windows 95 Increase Ram Usage #176

Open Watcher-Guru3D opened 4 years ago

Watcher-Guru3D commented 4 years ago

I would like to assign more system Ram to Windows 95. I looked for the instructions on how to perform this action however I did not find any documentation.

Would you be able to point me to or the procedure on how to assign more Ram to this project.

Regards

⚠️ Thank you for reporting an issue!

Before we go any further, understand that I probably won't be able to fullfil feature requests. Feel free to report what feature you'd love to see, just don't get angry when I don't have time to implement it πŸ™‡β€β™‚οΈ

I will however gladly help you make a pull request if you're willing to play with Javascript!

ghost commented 4 years ago

Go to resources\app\dist, edit app.15fac660.js on vscode (i would not recommend notepad). You then need to go to line 907 and you should see memory_size: 128 * 1024 * 1024, you must change the variable.

please be warned, changing it too high will cause issues and potential crashing. i'd recommend 256-512 on the first digit, don't change the others.

as i said, only change the first number which says 128, which means it has 128mb of RAM. you can also change the video memory.

hope this helps.

Watcher-Guru3D commented 4 years ago

Hello Lethdev and Felix:

Lethdev, you instructions worked perfectly. I have increased the memory value to 384MB.

I recommend following the instructions below to allow a significant jump in performance in Windows 95 operations.

Right click on β€œ My Computer” Go to β€œ Properties β€œ then β€œ Performance β€œ then β€œ File System β€œ then β€œ Hard Disk β€œ then select β€œ Network server β€œ in the drop down box for β€œ Typical role of this machine β€œ You require at least 256MB before you can select this option without causing Win 95 issues.

When I was serving these machines, this was one of the first option I would change to allow better performance for the clients.

Regards Wayne D

On Wed, Aug 26, 2020 at 02:19 Lethdev2019 notifications@github.com wrote:

Go to resources\app\dist, click on app.15fac660.js. You then need to go to line 907 and you should see memory_size: 128 1024 1024, you must change the variable.

please be warned, changing it too high will cause issues and potential crashing. i'd recommend 256-500 on the first digit, don't change the others.

as i said, only change the first number which says 128, which means it has 128mb of RAM.

hope this helps.

β€” You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/felixrieseberg/windows95/issues/176#issuecomment-680682571, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQKGZCRNHJ4TBF2J2QTF3GDSCSSQTANCNFSM4QLG6CBA .

-- Clever Minds never know when to sleep.

Kazlehoff commented 4 years ago

I saved memory_size: at 512 and Video_memory_size at 64 and Windows is still only reporting 128mb ram.

image

(yes obviously i made my changes while the emulator was not running, and even restart the VM inside the emulator after making changes. no change)

Watcher-Guru3D commented 4 years ago

Same issue. Win 95 not indicating increase in Ram size but I can tell by the way it’s responding that the Ram size has been increased.

Regards Wayne D

On Wed, Aug 26, 2020 at 19:45 Kazlehoff notifications@github.com wrote:

I saved memory_size: at 512 and Video_memory_size at 64 and Windows is still only reporting 128mb ram.

β€” You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/felixrieseberg/windows95/issues/176#issuecomment-681179893, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQKGZCWKTO7AV3W2O6DMIKTSCWNBLANCNFSM4QLG6CBA .

-- Clever Minds never know when to sleep.

ghost commented 4 years ago

I saved memory_size: at 512 and Video_memory_size at 64 and Windows is still only reporting 128mb ram.

image

(yes obviously i made my changes while the emulator was not running, and even restart the VM inside the emulator after making changes. no change)

try booting from scratch as windows has always required a restart to register components.

i did the above and got the following: image

ghost commented 4 years ago

Hello Lethdev and Felix: Lethdev, you instructions worked perfectly. I have increased the memory value to 384MB. I recommend following the instructions below to allow a significant jump in performance in Windows 95 operations. Right click on β€œ My Computer” Go to β€œ Properties β€œ then β€œ Performance β€œ then β€œ File System β€œ then β€œ Hard Disk β€œ then select β€œ Network server β€œ in the drop down box for β€œ Typical role of this machine β€œ You require at least 256MB before you can select this option without causing Win 95 issues. When I was serving these machines, this was one of the first option I would change to allow better performance for the clients. Regards Wayne D … On Wed, Aug 26, 2020 at 02:19 Lethdev2019 @.**> wrote: Go to resources\app\dist, click on app.15fac660.js. You then need to go to line 907 and you should see memory_size: 128 1024 1024, you must change the variable. please be warned, changing it too high will cause issues and potential crashing. i'd recommend 256-500 on the first digit, don't change the others.* as i said, only change the first number which says 128, which means it has 128mb of RAM. hope this helps. β€” You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#176 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQKGZCRNHJ4TBF2J2QTF3GDSCSSQTANCNFSM4QLG6CBA . -- Clever Minds never know when to sleep.

woah - add my instructions with that and you get one really fast emulator (i did it on an Intel Celeron running at 2.16 ghz)

Kazlehoff commented 4 years ago

"try booting from scratch as windows has always required a restart to register components." Hey, when i go start/shutdown/rrestart i end up with "-" in the middle of a black screen. then if i try to interact with it at all, the screen goes fully white and again does not respond.

reload brings me back to the "Start Windows 95" button... and 128mb ram.

"restart" from the machine menu asks me to set date time, then desktop. then.... 128mb ram.

Machine performance does not indicate 4x ram allocation and 2x Vram allocation

edit: full uninstall, reinstall, and modifying the files before first launch fixed the issue for me.

ghost commented 4 years ago

no need to that. also. if it goes white - press ctrl + r or command + r to reload the page - then try again. it happens to me too.

also Virtual Random Access Memory (VRAM) is written directly onto the disk when the RAM overflows so it will not lead to performance gain but can prevent crashes in the windows 95 emulation.