Fullscreen firefox on Linux

Jimmy

Well-known member
3rd Party Module Dev
Tutorial Author
Joined
Jan 2, 2020
Messages
1,105
This HTML5 fullscreen using Firefox on Linux. The left and right border flickers with garbage.
Is this a Firefox Linux issue, or even Firefox in general?

Chome fullscreen (below) works perfect on Linux.
Maybe Firefox is more picky regarding something so it might be fixable?
Firefoxfullscreen.png


ChromeFullscreen.png
 

Jimmy

Well-known member
3rd Party Module Dev
Tutorial Author
Joined
Jan 2, 2020
Messages
1,105
I tried with hardware acceleration off inside Firefox to make it work but this is what I got so I don't think it's the hardware driver.
(Also desktop works perfectly fullscreen, it's just firefox in fullscreen..

hwaccoff.png
 

Jimmy

Well-known member
3rd Party Module Dev
Tutorial Author
Joined
Jan 2, 2020
Messages
1,105
It's stretching a resolution fullscreen top to bottom, and the sides should be out of control for anything inside HTML.

I still wanted to doublecheck with you if you have any ideas...
It's also totally fine in windows mode.
 

Jimmy

Well-known member
3rd Party Module Dev
Tutorial Author
Joined
Jan 2, 2020
Messages
1,105
This one works https://webglfundamentals.org/webgl/lessons/webgl-resizing-the-canvas.html

But I'm not sure that means anything because it uses the complete screen and if you make it native resolution in CX then there's no problem to begin with in Firefox fullscreen, It only shows when you need to stretch. But stretch is good of course so..

There oughta be a way to stretch fullscreen correct enough for Firefox?
 

Phil7

Administrator
CX Code Contributor
3rd Party Tool Dev
Joined
Jun 26, 2017
Messages
681
The left and right border flickers with garbage.
Is this a Firefox Linux issue, or even Firefox in general?
What do you mean by garbage?
I didn't notice any issues with fullscreen F11 and draging the console to the bottom on Firefox Windows.
 

Jimmy

Well-known member
3rd Party Module Dev
Tutorial Author
Joined
Jan 2, 2020
Messages
1,105
You can see animation of trash from the desktop blinking rapidly, here for instance you see windows from Youtube that happened to be on the desktop, and its blinking to others graphicerrors rapidly. With the hw acc off you see another version of it with lots of grays.

Thanks, It might be a Linux-only or hw driver issue then. Good to hear.
 

Jimmy

Well-known member
3rd Party Module Dev
Tutorial Author
Joined
Jan 2, 2020
Messages
1,105
I might check into different ways to create fullscreens. I have hard to to believe it's a hw-driver-problem i must say as it works with other websites. I have not yet to tried it on macos as I don't have space for multiple browsers there. But the problem nags me as I develop on my Linux and I use HTML-fullscreen a lot.
 

Jimmy

Well-known member
3rd Party Module Dev
Tutorial Author
Joined
Jan 2, 2020
Messages
1,105
I'm just gonna use Chrome on Linux and forget about this.
 

Jimmy

Well-known member
3rd Party Module Dev
Tutorial Author
Joined
Jan 2, 2020
Messages
1,105
Just so everyone understands the problem, fullscreen on the top shows that
What do you mean by garbage?
You do see the gray stuff maybe easier on the 3:rd pic? That's supposed to be absolutelty black on both sides. It's animating gray stuff btw. That's what i call garbage, it's probably a graphics-error of some kind. On the top you see the same with hw-acc on, this is what FF suggest to me from the start, the same error occurs but in another shape.

There you see random parts cut out from the desktop as well as other things in memory but it should actually be pitch black again on both sides when in fullscreen mode.

I would def just call it a driver error if it were not for the fact, SOME websites might do similiar stretch in webgl (i use mojo2), and it works even on firefox / linux. This is hard to test of course.
 

Jimmy

Well-known member
3rd Party Module Dev
Tutorial Author
Joined
Jan 2, 2020
Messages
1,105
But then again, looking at this maybe there's something wrong with this Linux computer.

I can see pixelsgarbage on the last line of that webgl "canvas". Look at the very very last line you'll see. Something is wrong, driver-wise maybe. This one works fullscreen btw but it sets the resolution to native I think so not comparable.

But you can see there is a problem of the same character in all webgl graphics on this machine.
hwerror?.png
 

Jimmy

Well-known member
3rd Party Module Dev
Tutorial Author
Joined
Jan 2, 2020
Messages
1,105
actually i made progress, if i fullscreen using f11, no problem.

I drag down the console just a bit not fully, no problem in fullscreen.

So now I drag it fully down. The graphics errors will appear on the sides where there is no graphicscanvas.
But only where the console was before I dragged it fully down. So here it is very small area. Most of the screen is perfect. Just that previous console area is flickering on the sides.

First pictures shows fullscreen using f11, and dragging console down just a bit. Perfect.
The other one is dragged the whole way, that is what triggers this my firefox.
Screenshot_20220104_165255.png
flickerininthatarea.png
 

Jimmy

Well-known member
3rd Party Module Dev
Tutorial Author
Joined
Jan 2, 2020
Messages
1,105
You can't see the flicker btw on the bottom picture. I made a bad screenshot. It's hard to get the effect on screenshot. My guess is that here you happened to have a perfect console in graphics memory so it looks the same in this particular frame. I woulds say it flickers more than 2 different frames if that's interesting.
 

Jimmy

Well-known member
3rd Party Module Dev
Tutorial Author
Joined
Jan 2, 2020
Messages
1,105
#HTML5_CONSOLE_SHOW = False

is a 99% solve. Still one strand of pixels on each side very subtle though. Good enough for me!
 

Jimmy

Well-known member
3rd Party Module Dev
Tutorial Author
Joined
Jan 2, 2020
Messages
1,105
Actually it's a 100% fix :)

I wonder what it was though. Never seen it except in Firefox.e

But it's good to know. Under some weird circumstances firefox on linux when does not like to have the console on in fullscreen.
Just disable it and there's no problem.
 
Top Bottom