Skip to content
This repository has been archived by the owner on Sep 3, 2023. It is now read-only.

6ct/mouse-freeze-bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mouse-freeze-bug

This repository demonstrates a bug with Chromium.

Steps to reproduce (Electron)

  1. Clone the repository:
$ git clone https://github.com/v5p/mouse-freeze-bug.git
> Cloning into mouse-freeze-bug...
$ cd mouse-freeze-bug
  1. Install dependencies
$ npm install
  1. Test unlimited FPS

This will start Electron with the disable-frame-rate-limit switch and navigate to the local webserver.

$ npm run electron-unlocked

To verify this bug is present:

  • Drag your mouse anywhere across the window
  • WebSocket and Worker messaging should spike in latency (time it took for the main renderer thread to receive the message)
  1. Test limited FPS

This will start Electron with no additional switches and navigate to the local webserver.

$ npm run electron

To verify this bug is no longer as intense:

  • Drag your mouse anywhere across the window
  • WebSocket and Worker messaging should only slightly increase in latency

Steps to reproduce (Your browser)

  1. Clone the repository:
$ git clone https://github.com/v5p/mouse-freeze-bug.git
> Cloning into mouse-freeze-bug...
$ cd mouse-freeze-bug
  1. Install dependencies
$ npm install
  1. Start the HTTP/WebSocket server
$ npm start
  1. Test unlimited FPS

Start Chromium the disable-frame-rate-limit switch and navigate to http://localhost:8080/.

$ chromium-browser --disable-frame-rate-limit http://localhost:8080/

To verify this bug is present:

  • Drag your mouse anywhere across the window
  • Both WebSocket and Worker messaging should spike in latency (time it took for the main renderer thread to receive the message)
  1. Test limited FPS

Start Chromium with no switches and navigate to http://localhost:8080/.

$ chromium-browser http://localhost:8080/

To verify this bug is no longer as intense:

  • Drag your mouse anywhere across the window
  • Both WebSocket and Worker messaging should only slightly increase in latency

Overview

  • not present in <= Electron V9 or <= Chromium 83.0.4103.122 (npm install electron@9)
  • forced the Krunker developers to lock the Electron dependency to version 9
  • earliest Chrome version where this occurs is currently unknown

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published