Page 1 of 1

Screen goes darker at random times

Posted: Tue Apr 16, 2019 9:15 pm
by alcatraz
Hi fellow tankers,

I have a couple of issues with bzflag.
1. screen goes darker randomly during gameplay. It happens at random times, sometimes it doesn't occur for weeks, sometimes 3 times in 1 minute.
It happens only in bzflag. To fix it, I need to go into game options>display>..., change brightness and it is OK for a while.
All power saving options under OS are turned off.
bzflag version 2.4.18 (happened on other versions too)
OS: win 10 x64, latest updates, fresh install
Machine: acer, i5 6th gen with onboard intel 520. (happened on other machines too, Win 10/Win 7 x64, intel CPUs, onboard graphics and also one with nVidia 1050)
Current graphics driver: 25.20.100.6618 (08/03/2019) Also happens on older drivers.

2. To avoid FPS dropping fron (~100 to under 30 sometimes after a tank explodes of there are more players on the map), I have set in game option to Energy saver to FPS limit, but it does not save the option when re-launching bzflag. Have to cycle to another option and back to FPS limit to activate it.

also sound is choppy sometimes. I'll make another post for this.

Any ideaas?

Thanks,
alc

Re: Screen goes darker at random times

Posted: Thu May 02, 2019 9:03 pm
by Pesky_UK
Ditto for me too re screen going dark and same fix.

Windows 10 x64, fully up to date.

Re: Screen goes darker at random times

Posted: Tue Jun 11, 2019 5:00 pm
by alcatraz
Just noticed this. I am now missing the option to adjust brightness all together.
bzfi0002.png
(838.79 KiB) Not downloaded yet

Re: Screen goes darker at random times

Posted: Tue Jun 11, 2019 8:38 pm
by trpted
#1 Confirmed that you are missing that option.

#2 Unknown for sure what the fix is, so I am Guessing possible fixes..

---

#1 To use the config file?

As as example shot length. In the GUI shot length is more limited than what is in the config file.

#2 Download and compile from source code?

As as example I downloaded and compiled from source code on my Unix/Linux system and I do not have that issue.

Re: Screen goes darker at random times

Posted: Wed Jun 12, 2019 1:05 pm
by alcatraz
I have reinstalled bzflag, issue still there.

I've had a look through the .cfg file, but couldn't see anything related to brightness level. Not sure if I could add a line to set the brightness.

I am running Win10 v1903 x64, everything up to date, including drivers.

Re: Screen goes darker at random times

Posted: Wed Jun 12, 2019 1:10 pm
by alcatraz
Forgot to mention, now my screen is dark at all times.

Re: Screen goes darker at random times

Posted: Wed Jun 12, 2019 9:13 pm
by blast
If the brightness option is missing, it's not a config issue. It means that SDL is failing to set the brightness, so the option is being disabled. When this happens, BZFlag does write out the SDL error to stdout, but you won't normally see that. Open a command prompt and run:

Code: Select all

cd "\Program Files (x86)\BZFlag 2.4.18\"
bzflag > %USERPROFILE%\Desktop\bzflag-error.txt
Then go to the display settings menu just to be sure, and exit the game. See if there's anything in the bzflag-error.txt file on your desktop.

Re: Screen goes darker at random times

Posted: Thu Jun 13, 2019 8:32 pm
by alcatraz
Thanks blast.

I now have the option to adjust brightness back.
bz is still starting dark and after adjusting the brightness either way and back, it goes to normal.

Log contains 1 line:

Code: Select all

message_admin rate is 44100; audio output is 22050

Re: Screen goes darker at random times

Posted: Sat Jun 22, 2019 5:50 pm
by blast
I was not able to reproduce it on a Windows 10 laptop with a i7-4610M / Intel HD 4600 (also hybrid with some AMD Radeon chip) on either Windows 10 build 1803 nor the May 2019 update, but that's two generations of Intel older than yours. I was thinking that was my most recent system with the option of Intel graphics, but I realized my file server has a Skylake-S (6th gen Core) based Xeon with Intel HD P530. I will try to replicate it on that system, but that's a bit more tedious as it'll involve some drive removals/swaps.

Re: Screen goes darker at random times

Posted: Sat Jun 22, 2019 8:32 pm
by alcatraz
Hi blast.

Sorry I didn't mention this. I have since moved to an i5 7200 with HD620 running Win10 x64 1903.
When I was missing the option to change brightness it was on this machine.
When I start the game it starts dark. I change the brightness one step up or down and it goes to normal.
I ocasionally get the screen going dark in game (laptop plugged in), but not as often as before.
Video driver version: 26.20.100.6890.
If you want remote access, we can arrange it.
2019-06-22_212310.png
(229.45 KiB) Not downloaded yet
2019-06-22_212832.png
(70.05 KiB) Not downloaded yet
2019-06-22_213436.png
2019-06-22_213436.png (7.69 KiB) Viewed 6095 times

Re: Screen goes darker at random times

Posted: Sun Jun 23, 2019 4:28 pm
by blast
Also could not reproduce the issue with an Intel HD P530.

Re: Screen goes darker at random times

Posted: Fri Jul 05, 2019 10:28 am
by Pesky_UK
Pesky_UK wrote: Thu May 02, 2019 9:03 pm Ditto for me too re screen going dark and same fix.

Windows 10 x64, fully up to date.
I get it on my Surface Pro 3 (Intel HD Graphics Family). My "fix" was to change the cfg file to read only and that seemed to stop it from happening but since the latest Win 1903 update it's started again, at least once per game.

Re: Screen goes darker at random times

Posted: Fri Aug 02, 2019 5:33 pm
by alcatraz
I recently noticed that if I do minimise (F4) after launching the game and then switch back to it, the brightness is as it should be.
It's quicker than going through the menu and adjunsting the brightness.

Re: Screen goes darker at random times

Posted: Sat Aug 10, 2019 11:47 am
by alcatraz
I still have to change Energy Saver options to take effect before playing.
For example, I keep it on Vertical Sync, but if I play without changing it to Off or FPS Limit and back, FPS will go to something like 200+ and drop to ~30 when there is intensive activity on screen.
It I change it to either VSync/FPS limit before playing, FPS will be capped at 60/30 fps without dropping.

Re: Screen goes darker at random times

Posted: Sun Aug 11, 2019 4:04 am
by macsforme
alcatraz wrote: Sat Aug 10, 2019 11:47 am I still have to change Energy Saver options to take effect before playing.
For example, I keep it on Vertical Sync, but if I play without changing it to Off or FPS Limit and back, FPS will go to something like 200+ and drop to ~30 when there is intensive activity on screen.
It I change it to either VSync/FPS limit before playing, FPS will be capped at 60/30 fps without dropping.
This is a known bug which was already patched in our development code. It will be fixed in the next release of the game.