IniEngine3D let's the computer go black for a fraction of a second

Just starting out? Need help? Post your questions and find answers here.
User avatar
jacdelad
Addict
Addict
Posts: 2032
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

IniEngine3D let's the computer go black for a fraction of a second

Post by jacdelad »

Hi,
I recently started using the 3D engine on Windows. Now, some somputer turn the screen black for a second or less when starting the program. I moved the line with "InitEngine3D()" into the subroutine which which starts the 3D stuff, but it always occurs on startup (which is surely normal as I expect the program always initializes the 3D engine on startup). However, is there a way to prevent it? Is it a driver thing or maybe the screen settings (resolution, framerate...)?
Good morning, that's a nice tnetennba!

PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
User avatar
mk-soft
Always Here
Always Here
Posts: 6320
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: IniEngine3D let's the computer go black for a fraction of a second

Post by mk-soft »

Could it be that you have an advanced graphics card? This can lead to hardware switching.
Or you are using different resolutions between Windows and Game Mode
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
jacdelad
Addict
Addict
Posts: 2032
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

Re: IniEngine3D let's the computer go black for a fraction of a second

Post by jacdelad »

Hi mk-soft,
I'm not switching between graphic modes, just opening a simple window and using OpenWindowedScreen() on it.
Unfortunately I don't know much about said computer, as it's provided by my employer. But hardware switching could be a reason.
We don't need to waste too much time on thinking about that, I was just curious. Everything works with this computer too.
Good morning, that's a nice tnetennba!

PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
Post Reply