Closed
Bug 692121
Opened 14 years ago
Closed 14 years ago
Using a timer to start d3d interferes with tests
Categories
(Core :: Graphics, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: espindola, Assigned: bas.schouten)
References
(Blocks 1 open bug)
Details
In the windows nsToolkit::Init we create a timer that enables d3d9. This means that some tests can run with d3d9 or not depending on the bot speed.
We should have some way of forcing it on or waiting for it before running tests.
Updated•14 years ago
|
Assignee: nobody → bas.schouten
Comment 1•14 years ago
|
||
Bas, this is also really bad for startup speed. This penalizes users of slow machines too much(ie if your startup is >=5s, then you are gonna pay an extra d3d9 tax). Would be nicer if this setup an nsIobserver and waited for either "window-displayed"(I don't know the exact name or "session-restored" notification before setting up the timer.
Once we have an IO queue, we'd get rid of the timer altogether.
| Assignee | ||
Comment 2•14 years ago
|
||
We could just up the timer to 30s to solve that problem. There's no need to switch accelerated layers on 'as soon as possible'.
Comment 3•14 years ago
|
||
I think there are some use cases where forcing hardware acceleration to initialize would be desirable. For instance, what if a power user alternates between two builds of Firefox to run some HWA-sensitive benchmarks? Setting the timer to 30 seconds makes it much more likely that the benchmark will start out unaccelerated, invalidating the results.
| Assignee | ||
Comment 4•14 years ago
|
||
Perhaps, but that's a testing error in a way (i.e. not understanding your testing conditions, 'about:support' will actually show you're unaccelerated). Although admittedly, that would suck.
Arguably though, if firefox is taking 5s to startup, the 50-100ms from D3D9 isn't going to matter too much. But okay, that issue is getting away from this bug a little, I guess the bottom line is we want a pref we can set to make it initialize on startup, always?
Comment 5•14 years ago
|
||
So I think the original title of the bug is WORKSFORME, since we'll get accelerated layers as soon as a canvas is used, which I think would cause the reftests to always run in accelerated mode.
Feel free to reopen and morph into other issues, or file separate bugs.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•