Screen goes darker at random times

Help with Setup, Hardware, Performance or other Issues...Or just pimp your rig.
Post Reply
User avatar
alcatraz
Private First Class
Private First Class
Posts: 22
Joined: Tue Nov 29, 2005 9:13 am

Screen goes darker at random times

Post 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
Pesky_UK
Private First Class
Private First Class
Posts: 43
Joined: Mon Dec 05, 2005 9:31 pm

Re: Screen goes darker at random times

Post by Pesky_UK »

Ditto for me too re screen going dark and same fix.

Windows 10 x64, fully up to date.
Find our @bz_flag unofficial group chat on Telegram at https://t.me/bz_flag
User avatar
alcatraz
Private First Class
Private First Class
Posts: 22
Joined: Tue Nov 29, 2005 9:13 am

Re: Screen goes darker at random times

Post by alcatraz »

Just noticed this. I am now missing the option to adjust brightness all together.
bzfi0002.png
(838.79 KiB) Not downloaded yet
trpted
Private First Class
Private First Class
Posts: 242
Joined: Mon Feb 21, 2005 8:29 pm

Re: Screen goes darker at random times

Post 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.
User avatar
alcatraz
Private First Class
Private First Class
Posts: 22
Joined: Tue Nov 29, 2005 9:13 am

Re: Screen goes darker at random times

Post 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.
User avatar
alcatraz
Private First Class
Private First Class
Posts: 22
Joined: Tue Nov 29, 2005 9:13 am

Re: Screen goes darker at random times

Post by alcatraz »

Forgot to mention, now my screen is dark at all times.
User avatar
blast
General
General
Posts: 4931
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Screen goes darker at random times

Post 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.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image
User avatar
alcatraz
Private First Class
Private First Class
Posts: 22
Joined: Tue Nov 29, 2005 9:13 am

Re: Screen goes darker at random times

Post 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
User avatar
blast
General
General
Posts: 4931
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Screen goes darker at random times

Post 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.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image
User avatar
alcatraz
Private First Class
Private First Class
Posts: 22
Joined: Tue Nov 29, 2005 9:13 am

Re: Screen goes darker at random times

Post 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 5996 times
User avatar
blast
General
General
Posts: 4931
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Screen goes darker at random times

Post by blast »

Also could not reproduce the issue with an Intel HD P530.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image
Pesky_UK
Private First Class
Private First Class
Posts: 43
Joined: Mon Dec 05, 2005 9:31 pm

Re: Screen goes darker at random times

Post 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.
Find our @bz_flag unofficial group chat on Telegram at https://t.me/bz_flag
User avatar
alcatraz
Private First Class
Private First Class
Posts: 22
Joined: Tue Nov 29, 2005 9:13 am

Re: Screen goes darker at random times

Post 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.
User avatar
alcatraz
Private First Class
Private First Class
Posts: 22
Joined: Tue Nov 29, 2005 9:13 am

Re: Screen goes darker at random times

Post 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.
User avatar
macsforme
General
General
Posts: 2069
Joined: Wed Mar 01, 2006 5:43 am

Re: Screen goes darker at random times

Post 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.
Post Reply