win32ss / supermium

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

Supermium causes system clock to race ahead #665

Open DrestinBlack opened 2 weeks ago

DrestinBlack commented 2 weeks ago

I am using XP SP3 with all updates. System time has never been an issue.

Running Supermium Version 122.0.6261.85 (Official Build) (32-bit)

When I open Supermium to it's home page, or a simple page like google.com or static HTML no issues.

However, when I go to a page that has running scripts/code on it such as Tradingview.com, Coinmarketcap.com, Yahoo Finance, etc suddenly my system clock races ahead about 33% (or so) faster than usual. When I close those pages or the browser, time returns to normal pace.

I reset the clock, monitor it for several hours, no drift. Open Supermium and leave it just on the home page, no issues.

Go to, for example, tradingview.com and just let it sit there on some random chart -- time races ahead.

(for comparison) Going to those same pages using MyPal causes no system timer issues.

Given that almost every page I visit has some kind of scripting this is a critical bug for me.

Thank you for your attention to this matter.

win32ss commented 2 weeks ago

What CPU are you using? I am aware of some timer bugs in XP itself but they shouldn't affect older CPUs.

DrestinBlack commented 2 weeks ago

What CPU are you using? I am aware of some timer bugs in XP itself but they shouldn't affect older CPUs.

I am using a Core2 Duo E8600

I downloaded a little tool called Timerresolution.exe which checks the system timer resolution ( I guess gamers change it for performance hopes). When I opened it it showed 0.977 ms.

I then opened to type this reply and thought, let me check it again, it now it shows 15.625 (I'm lead to believe from a few google searches that this is the default/normal value).

I opened a couple other tabs and checked back and the timer resolution changed to 0.977 ms.

I closed those tabs and refreshed the system timer and it returned to 15.625 (default) after a moment or so.

I'd also note. Sometimes I'll get system freezes. Long long pauses and then everything catches up. I just noticed. if it's at that .977 value the system freezes occur, as long as its' at the normal value of 15.625 I get no freezes.

So, this is a critical bug. Can we please not mess with the system timer? :) Or at the very least give me a configurable option to prevent this value from being changed?

**** Edit/Update:

So I've done a bit more research. I see that changing the timer resolution is a trick gamers are trying to exploit for better response time. However, I've just learned, its been used for years now by Windows Media Player. I just verified this myself. When I open Window Media Player and play a video the resolution changes to .977 when I close it the resolution returns to 15.625. However, during this time my clock is unaffected (trust me, I'd have noticed over the past 10 years).

I went into Youtube and a couple other video playing sites and, strangely, sometimes it changes the resolution but not always.

Here are the two main things: the same pages using mypal do not cause this issue and just changing the resolution shouldn't affect system time - as it's been changed by other apps for some time and is a supported (not a hack/trick) function.

So, there is something else that Supermium appears to be doing that's unique causes the clock to race ahead. As I type this I've had a video running in the background and I'm already 2 minutes ahead of normal time.

Thank you for looking into this... db

NS-Clone commented 2 weeks ago

they shouldn't affect older CPUs

there is reports that it affected too and maybe it's related to multicore kernel not older cpus