win32ss / supermium

Chromium fork for Windows XP/2003 and up
https://win32subsystem.live/supermium/
BSD 3-Clause "New" or "Revised" License
1.91k stars 62 forks source link

YouTube skips a lot and high ram usage, is it normal for my system? #200

Open ChuckBartowski91 opened 5 months ago

ChuckBartowski91 commented 5 months ago

Hello, supermium 121 allocates a lot, jumping from 196 MB before launching to 1580 MB after that. Opening a youtube video (audio stutters especially navigating to other sites while playing) uses other ~700 mb. I'm using ublock origin (disabling it releases ~220 mb).

System: amd athlon 64 x2 5600+ 2.9 ghz, 3 GB RAM, radeon HD 4670, windows XP sp3 x86 with posready updates. Supermium version 121.0.6167.81

win32ss commented 5 months ago

I had tried rebasing progwrp.dll to keep it out of the Supermium address space but it seems that it doesn't always work. How about with this version? progwrp.zip

andika207 commented 5 months ago

System: amd athlon 64 x2 5600+ 2.9 ghz, 3 GB RAM, radeon HD 4670

I know this from experience, that 2 core CPU was already obsolete back in the Firefox 52 era so just just imagine it now with a 2024 released browser. You will feel a huge difference if you replace it with a good quad core CPU

ChuckBartowski91 commented 5 months ago

I had tried rebasing progwrp.dll to keep it out of the Supermium address space but it seems that it doesn't always work. How about with this version? progwrp.zip

Where should I place it? This DLL is in the installer but I've extracted the files from mini_installer.exe since I am on XP.

win32ss commented 5 months ago

Next to chrome.exe.

ChuckBartowski91 commented 5 months ago

Next to chrome.exe.

In that case I tried once but no difference. Tomorrow I'll test more and post if I'll see some differences.

ghost commented 5 months ago

HW acceleration isn't available in Supermium (and any Chromium based "backported" browser) in Windows XP. Mypal68 supports it, so it should help you play videos without stuttering.

win32ss commented 5 months ago

Chromium disabled hardware acceleration on Windows XP in November 2013. The GPU "bug" that blocked this acceleration was removed a month or two ago, but it was more unstable than I would've liked (D3D9 completely broken, GL a little less). With insufficient time to resolve it, I restored the block.

andika207 commented 5 months ago

Chromium disabled hardware acceleration on Windows XP in November 2013.

https://stackoverflow.com/questions/15073593/does-chrome-support-gpu-hardware-acceleration-for-the-2d-canvas-under-windows-xp

ChuckBartowski91 commented 5 months ago

Chromium disabled hardware acceleration on Windows XP in November 2013.

https://stackoverflow.com/questions/15073593/does-chrome-support-gpu-hardware-acceleration-for-the-2d-canvas-under-windows-xp

I don't know if that's still valid but requires --no-sandbox parameter which crashes supermium at startup.

ChuckBartowski91 commented 5 months ago

HW acceleration isn't available in Supermium (and any Chromium based "backported" browser) in Windows XP. Mypal68 supports it, so it should help you play videos without stuttering.

I already knew but it's based on outdated Firefox quantum 68, I cannot use both mypal for videos and supermium for navigation together, they will eat all my ram.

ChuckBartowski91 commented 5 months ago

Chromium disabled hardware acceleration on Windows XP in November 2013. The GPU "bug" that blocked this acceleration was removed a month or two ago, but it was more unstable than I would've liked (D3D9 completely broken, GL a little less). With insufficient time to resolve it, I restored the block.

That's unfortunate. Guess I'll have to wait for superfox if you will be doing that. Thanks for all the work you've done.

Anyway I tried more times with progwrp.dll next to chrome.exe but no difference whatsoever.

eXPc023 commented 5 months ago

I already knew but it's based on outdated Firefox quantum 68, I cannot use both mypal for videos and supermium for navigation together, they will eat all my ram.

It's actually based on FF 78, the name stayed same though. I use both for browsing and I wouldn't have much problems (Only Discord is needed to run on Supermium as they broke compatibility with older FF/CH versions than 91. Here's my memory usage while playing a video in Mypal 68.13.4b and having two Github tabs open in Supermium 121 (MP has 4, SPM has 6 extensions installed!): image The trick here is to run Mypal at single process mode. Edit: I forgot to add that I've edited the icon of Supermium to make it look like the original Chromium. See: image

ghost commented 5 months ago

HW acceleration isn't available in Supermium (and any Chromium based "backported" browser) in Windows XP. Mypal68 supports it, so it should help you play videos without stuttering.

I already knew but it's based on outdated Firefox quantum 68, I cannot use both mypal for videos and supermium for navigation together, they will eat all my ram.

Mypal68 was upgraded to FFQ78. Guess you weren't following it at all. It works on whatever I throw at it, including youtube. Maybe you wouldn't want to browse too hard on an XP machine, right? 😉

ChuckBartowski91 commented 5 months ago

HW acceleration isn't available in Supermium (and any Chromium based "backported" browser) in Windows XP. Mypal68 supports it, so it should help you play videos without stuttering.

I already knew but it's based on outdated Firefox quantum 68, I cannot use both mypal for videos and supermium for navigation together, they will eat all my ram.

Mypal68 was upgraded to FFQ78. Guess you weren't following it at all. It works on whatever I throw at it, including youtube. Maybe you wouldn't want to browse too hard on an XP machine, right? 😉

I don't understand all about programming a browser, but Feodor2 wrote about the JavaScript engine updated on Firefox 78, not the entire browser, it's less updated then supermium anyway, don't know about security point how much is worth though since, you know, XP.

ghost commented 5 months ago

I don't understand all about programming a browser, but Feodor2 wrote about the JavaScript engine updated on Firefox 78, not the entire browser, it's less updated then supermium anyway, don't know about security point how much is worth though since, you know, XP.

Do whatever you want to do, dude. I knew helping people was a fault.

ChuckBartowski91 commented 5 months ago

I don't understand all about programming a browser, but Feodor2 wrote about the JavaScript engine updated on Firefox 78, not the entire browser, it's less updated then supermium anyway, don't know about security point how much is worth though since, you know, XP.

Do whatever you want to do, dude. I knew helping people was a fault.

Wow i just don't know where I said that helping won't be appreciated. Sorry for the misunderstanding. I was thinking we were just debating about browsers.

andika207 commented 5 months ago

Wow i just don't know where I said that helping won't be appreciated.

because you are a waste of time !

you complain about Mypal68 being outdated and unsafe to use.... '''security point''' ? but you refuse to say anything about your ''outdated'' hardware as I have told you before you are expecting Supermium dev to build a browser version that suits your specific setup but this won't gonna happen.

good luck

ChuckBartowski91 commented 5 months ago

Wow i just don't know where I said that helping won't be appreciated.

because you are a waste of time !

you complain about Mypal68 being outdated and unsafe to use.... '''security point''' ? but you refuse to say anything about your ''outdated'' hardware as I have told you before you are expecting Supermium dev to build a browser version that suits your specific setup but this won't gonna happen.

good luck

I asked if was normal for my system in the title, so you're the one that does not pay attention. Mypal is less safe from my point of view and you do not say anything constructive but just attacking me. I'm not asking anything I just said that I'll wait for superfox if will be any. You've offended me saying that I'm a waste of time so this discussion ends here.

andika207 commented 5 months ago

You've offended me saying that I'm a waste of time so this discussion ends here.

nobody will miss you, while waiting you can go on ebay :department_store: and spend 10 bucks for a better CPU and more DDR2 RAM because Superfox will also require it. cheers

ChuckBartowski91 commented 5 months ago

You've offended me saying that I'm a waste of time so this discussion ends here.

nobody will miss you, while waiting you can go on ebay 🏬 and spend 10 bucks for a better CPU and more DDR2 RAM because Superfox will also require it. cheers

I really doubt it since Firefox ESR on windows 7 works like a charm, I don't really have any speed problem on navigating the web on supermium too apart from youtube, so you really don't know what you're talking about.

andika207 commented 5 months ago

I really doubt it since Firefox ESR on windows 7 works like a charm

modern web browsers get optimized for more advanced kernels so what ?

ChuckBartowski91 commented 5 months ago

I really doubt it since Firefox ESR on windows 7 works like a charm

modern web browsers get optimized for more advanced kernels so what ?

Nothing new but hardware acceleration works on firefox on xp so it's a big advantage.

But you're asking me so what and thats my answer: Please leave my email box alone.

andika207 commented 5 months ago

Nothing new but hardware acceleration works on firefox on xp so it's a big advantage.

with or without hardware acceleration Supermium rocks equally well for my use case

But you're asking me so what and thats my answer: Please leave my email box alone.

so close this issue and get away it's that simple :raised_hand:

ChuckBartowski91 commented 5 months ago

Thats my last answer since this is becoming absurd.

with or without hardware acceleration Supermium rocks equally well for my use case

Who said the opposite? Not me. I already thanked win32ss.

so close this issue and get away it's that simple ✋

Are you my parent or even my wife to tell me what to do? Win32ss can close it if that's nothing that can be done to improve the situation. Not me but surely not you can.

andika207 commented 5 months ago

Who said the opposite? Not me.

FACE PALM

Are you my parent or even my wife to tell me what to do?

where are you from ?

win32ss commented 5 months ago

Here are the rebased DLLs, to be put next to chrome.exe: rebased_dlls.zip

ChuckBartowski91 commented 5 months ago

Here are the rebased DLLs, to be put next to chrome.exe: rebased_dlls.zip

No difference unfortunately. In addition before the browser opens I get a lot of errors about the dlls not being a valid windows image.

Zero3K commented 5 months ago

@win32ss Try doing this command:

rebase.exe -b 10040000 chrome.dll libEGL.dll libGLESv2.dll vk_swiftshader.dll vulkan-1.dll

win32ss commented 5 months ago

I compiled a new set and another user reporting the same issue has said they work. https://github.com/win32ss/supermium/files/14141689/corrected_api_sets.zip

ChuckBartowski91 commented 5 months ago

I compiled a new set and another user reporting the same issue has said they work. https://github.com/win32ss/supermium/files/14141689/corrected_api_sets.zip

Now doesn't show any error message at startup, the ram usage is the same as without them. I have visual c++ 2015-2019 installed.

I tried to launch with fresh user profile and reset process priority which I set to high to improve media playback a bit, but no ram difference, apart from the ram freed from ublock origin. before after

SleakaJ commented 5 months ago

I compiled a new set and another user reporting the same issue has said they work. https://github.com/win32ss/supermium/files/14141689/corrected_api_sets.zip

That fixed it for me. Dropped from 1.8Gb RAM usage to 653Mb.

Unlike ChuckBartowski91, I never put the PROGWRP.DLL file in the same folder that was suggested earlier in this thread, so I don't have it there. If that's any help Chuck, I'd remove PROGWRP.DLL and see how that goes.

ChuckBartowski91 commented 5 months ago

I compiled a new set and another user reporting the same issue has said they work. https://github.com/win32ss/supermium/files/14141689/corrected_api_sets.zip

That fixed it for me. Dropped from 1.8Gb RAM usage to 653Mb.

Unlike ChuckBartowski91, I never put the PROGWRP.DLL file in the same folder that was suggested earlier in this thread, so I don't have it there. If that's any help Chuck, I'd remove PROGWRP.DLL and see how that goes.

Thank you for the help, unfortunately I've tried once to remove the progwrp.dll but no difference. I'll try again anyway more times and more things and write if I find any difference, maybe I could test in safe mode and without internet connection.

At this point could be anything, like the amd cpu mishandling Windows XP - Chromium 121 combination.

JoachimHenze commented 4 months ago

"Youtube skips a lot and has slightly blubbering audio output" did also happen for me in "Supermium 121.0.6167.81 Hotfix", and still continues to happen in newer "Supermium 122.0.6261.85". Both on XPSP3 with Ati Radeon 4350. I do also believe that what is missing is some kind of hardware acceleration.

Best youtube performance on XPSP3 (for me) is currently provided by the NewMoon27 browser of roytam. I do recommend the following slightly outdated version: https://o.rthost.win/palemoon/palemoon-27.10.0.win32-git-20240224-ce0ac6811d-xpmod-ia32.7z (because the latest build of 20240302 unfortunately suffers from a regression in youtube-context that will be fixed soon)

It would be nice if we could bring Supermium on par to that browser!

Vangelis66 commented 4 months ago

the Mypal27 browser of roytam.

... You certainly meant New Moon 27 by roytam1, which was initially a fork of the now deprecated Pale Moon 27 browser (on the Tycho platform) by Moonchild Productions :wink: ; currently, NM27 is backporting code from the Arctic-Fox project (by rmottola) ; FWIW, the "Mypal" branding is associated with Feodor2 :smile: ...

JoachimHenze commented 4 months ago

@Vangelis66 yes that was a typo. Corrected now.

JoachimHenze commented 2 months ago

Still poor youtube performance when retesting with "Supermium 122.0.6261.152 (R4)" and its stock progwrp.dll 1.1.0.5010, on non-HW-accelerated WinXPSP3 32bit. Still with audio hiccups. "New Moon 27" by roytam1 is still superior in this usecase.

win32ss commented 2 months ago

Was this an issue in Chrome 49 or earlier for you? I did tweak the SRW lock and condition variable implementations and it did improve playback on my testing setups. So maybe the solution does not lie in improved synchronization APIs on your system.

JoachimHenze commented 2 months ago

Was this an issue in Chrome 49 or earlier for you?

No Chrome 49 has vastly superior playback performance on youtube. And it has zero issues with choppy audio. Chrome 49 is slower when navigating the youtube site, yes, and has issues with switching videos to fullscreen properly (since some youtube.com update after the browsers end-of-life), but its video playback performance is vastly superior over Supermium 121.x, 122.x, and "122.0.6261.152 (R4)". The problem with the video playback performance is affecting WindowsXPSP3 machines. Pentium E5200 45nm "C2D-based" 2 x 2.5GHz, 4GB RAM, Ati Radeon HD 4350.

JoachimHenze commented 1 month ago

I am now completely happy when testing Supermium R122R6 with the most recent progwrp 5059withHWaccel by @IDA-RE-things see here for my results with youtube https://github.com/win32ss/supermium/issues/612#issuecomment-2140795931 and see here for where to get that from https://github.com/IDA-RE-things/Chrome-xp-api-adapter/releases If you do agree, I do recommend to close this issue.