Project

General

Profile

Actions

Emulator Issues #2792

closed

Games freeze untill mouse is clicked inside window.

Added by eyecreate over 14 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

What steps will reproduce the problem?
1.run Dolphin svn
2.when playing game, game will sometimes act "paused" and will only continue once mouse has been clicked on window.

What is the expected output? What do you see instead?
No pause should exist there.
Dolphin version with the problem? Other Dolphin version without the
problem?
problem in 5643, none in 4883
32-bit or 64-bit and any other build parameters?
64 bit
OS version and versions of tools/libraries used?
latest archlinux
Please provide any additional information below.
tried many different settings to make sure those weren't causing this and none of them changed the functionality.


Related issues 1 (0 open1 closed)

Is duplicate of Emulator - Emulator Issues #851: Dolphin freezes and stops emulation until mouse moved or keyboard input receivedFixednakeee

Actions
Actions #1

Updated by GameZelda2 over 14 years ago

Something similar happens to me with a 64-bit Debian, using a revision from a few months ago and a revision from about a month ago.

There are moments where the games work correctly (without pausing), but sometimes the game won't run unless I move the mouse over the window or click it.

Actions #2

Updated by Karloathian over 14 years ago

Found a fix thats works for me and it's pretty simple:
change
Source/Plugins/Plugin_VideoOGL/Src/GLUtil.cpp line 168 from
for (int num_events = XPending(GLWin.dpy); num_events > 0; num_events--) {

to
for (int num_events = XPending(GLWin.dpy) -1; num_events > 0; num_events--) {

The XEvent loop was looking for 1 too many events, which caused XNextEvent to hang until it got another event, which in turn prevented XLib input driver from querying the mouse and keyboard in a seperate thread.

Actions #3

Updated by classic.gamer0 over 14 years ago

Karloathian's fix is working for me with the latest revision (5743) on my updated Arch64 install.

Actions #4

Updated by snzgoo over 14 years ago

  • Status changed from New to Fixed

committed in r5750 thx

Actions #5

Updated by glennricster over 14 years ago

  • Status changed from Fixed to Questionable

This is wrong. It sounds like the x server implementation on these distributions that are having this problem has a bug in it. Now if there is a single event occurs it is not detected until the next event occurs. This must be reverted immediately.

Actions #6

Updated by glennricster over 14 years ago

  • Status changed from Questionable to Duplicate
Actions

Also available in: Atom PDF