Fractal Softworks Forum

Starsector => Bug Reports & Support => Topic started by: Chairman Meow on October 16, 2015, 12:12:05 PM

Title: Low FPS in Fullscreen & Borderless Window
Post by: Chairman Meow on October 16, 2015, 12:12:05 PM
Hi, I wanted to try the game again but am running into some FPS problems.
When I launch the game I get 9-12 FPS in the main menu.

At first I thought it was the shaders mod and all the other mods I installed but I also tried it with a clean install.

If I launch the game in a non native resolution I get ~56 fps in the main menu.

What I tried so far:
I'm on a notebook so first I checked if the nvidia GPU is being used, it is - check
Reinstalled the latest Java version and moved it to the game folder/jre - check
Set ram usage to 4 gb - check
disabled extra visual effects in windows (I read that enable desktop composition can cause this problem) but that did not help either.

Did anyone run into this problem and fixed it?
I found multiple threads with the same problem but non of the suggested fixes worked for me so far.
Am I missing something?

Running windows 10.

I hope someone can help me out.
Thanks in advance.
Title: Re: Low FPS in Fullscreen & Borderless Window
Post by: Alex on October 16, 2015, 12:40:56 PM
Are your graphics drivers up-to-date? It might be possible that you ended up with old drivers after upgrading to windows 10.

Can you run the game with good performance in actual non-borderless-windowed fullscreen mode, btw? I'm not quite clear on that from the thread title.
Title: Re: Low FPS in Fullscreen & Borderless Window
Post by: Chairman Meow on October 16, 2015, 01:18:20 PM
sorry, wrote it in a hurry.
the performance is bad when I launch in full screen 1600x900 and in borderless windowed 1600x900.
If I launch fullscreen in a lower resolution fps stay around 10.
If I launch borderless windows at a lower resolution I get around 60 fps.

drivers are up to date.
starting to think it's related to some windows desktop effects or something but I couldn't figure it out yet :(

thanks for the fast reply by the way!
Title: Re: Low FPS in Fullscreen & Borderless Window
Post by: Dark.Revenant on October 16, 2015, 01:38:41 PM
Can you post your computer's specifications or model?

It sounds like you are rendering in software.
Title: Re: Low FPS in Fullscreen & Borderless Window
Post by: Chairman Meow on October 16, 2015, 02:16:16 PM
Sure, happy about any help I can get!

it's an ideapad u430.
dxdiag info about the important components: (kept the intel hd card in there, nvidia card is used for all applications though)
Spoiler
------------------
System Information
------------------

         Operating System: Windows 10 Home 64-bit (10.0, Build 10240) (10240.th1.150930-1750)
      System Manufacturer: LENOVO
             System Model: 20270
                     BIOS: InsydeH2O Version 03.73.067CCN62WW
                Processor: Intel(R) Core(TM) i5-4200U CPU @ 1.60GHz (4 CPUs), ~2.3GHz
                   Memory: 8192MB RAM
      Available OS Memory: 8120MB RAM
                Page File: 2171MB used, 7227MB available
              Windows Dir: C:\Windows
          DirectX Version: 12
      DX Setup Parameters: Not found
         User DPI Setting: Using System DPI
       System DPI Setting: 96 DPI (100 percent)
          DWM DPI Scaling: Disabled
                 Miracast: Available, with HDCP
Microsoft Graphics Hybrid: Supported
           DxDiag Version: 10.00.10240.16384 64bit Unicode

---------------
Display Devices
---------------
          Card name: Intel(R) HD Graphics Family
       Manufacturer: Intel Corporation
          Chip type: Intel(R) HD Graphics Family
           DAC type: Internal
        Device Type: Full Device
         Device Key: Enum\PCI\VEN_8086&DEV_0A16&SUBSYS_380017AA&REV_09
     Display Memory: 6056 MB
   Dedicated Memory: 1996 MB
      Shared Memory: 4059 MB
       Current Mode: 1600 x 900 (32 bit) (48Hz)
       Monitor Name: Generic PnP Monitor
      Monitor Model: unknown
         Monitor Id: LEN40A1
        Native Mode: 1600 x 900(p) (60.008Hz)
        Output Type: Internal
        Driver Name: igdumdim64.dll,igd10iumd64.dll,igd10iumd64.dll,igd12umd64.dll,igdumdim32,igd10iumd32,igd10iumd32,igd12umd32
Driver File Version: 10.18.0015.4256 (English)
     Driver Version: 10.18.15.4256
        DDI Version: 12
     Feature Levels: 11.0,10.1,10.0,9.3,9.2,9.1
       Driver Model: WDDM 2.0
Graphics Preemption: Primitive
 Compute Preemption: Thread group
           Miracast: Supported
Hybrid Graphics GPU: Integrated
     Power P-states: Not Supported
  Driver Attributes: Final Retail
   Driver Date/Size: 9/29/2015 17:59:12, 36681912 bytes

          Card name: NVIDIA GeForce GT 730M     
       Manufacturer: NVIDIA
          Chip type: GeForce GT 730M
           DAC type: Integrated RAMDAC
        Device Type: Render-Only Device
         Device Key: Enum\PCI\VEN_10DE&DEV_1290&SUBSYS_380017AA&REV_A1
     Display Memory: 6056 MB
   Dedicated Memory: 1996 MB
      Shared Memory: 4059 MB
       Current Mode: n/a
        Driver Name: nvd3dumx,nvwgf2umx,nvwgf2umx,nvwgf2umx,nvd3dum,nvwgf2um,nvwgf2um,nvwgf2um
Driver File Version: 10.18.0013.5850 (English)
     Driver Version: 10.18.13.5850
        DDI Version: 12
     Feature Levels: 11.0,10.1,10.0,9.3,9.2,9.1
       Driver Model: WDDM 2.0
Graphics Preemption: DMA
 Compute Preemption: DMA
           Miracast: Not Supported by Graphics driver
Hybrid Graphics GPU: Discrete
     Power P-states: Not Supported
  Driver Attributes: Final Retail
   Driver Date/Size: 10/3/2015 06:58:10, 15837152 bytes
        WHQL Logo'd: Yes
    WHQL Date Stamp:
  Device Identifier: n/a
          Vendor ID: 0x10DE
          Device ID: 0x1290
          SubSys ID: 0x380017AA
        Revision ID: 0x00A1
 Driver Strong Name: oem21.inf:0f066de369855354:Section066:10.18.13.5850:pci\ven_10de&dev_1290&subsys_380017aa
     Rank Of Driver: 00D10001
        Video Accel: n/a
        DXVA2 Modes: DXVA2_ModeMPEG2_IDCT  DXVA2_ModeMPEG2_VLD  DXVA2_ModeVC1_D2010  DXVA2_ModeVC1_VLD  DXVA2_ModeVC1_IDCT  DXVA2_ModeWMV9_IDCT  DXVA2_ModeH264_VLD_Stereo_Progressive_NoFGT  DXVA2_ModeH264_VLD_Stereo_NoFGT  DXVA2_ModeH264_VLD_NoFGT  DXVA2_ModeHEVC_VLD_Main  DXVA2_ModeMPEG4pt2_VLD_Simple  DXVA2_ModeMPEG4pt2_VLD_AdvSimple_NoGMC 
      Deinterlace Caps: n/a
       D3D9 Overlay: n/a
            DXVA-HD: n/a
       DDraw Status: Enabled
         D3D Status: Enabled
         AGP Status: Enabled

-------------
Sound Devices
-------------
            Description: Speakers (Realtek High Definition Audio)
 Default Sound Playback: Yes
 Default Voice Playback: Yes
            Hardware ID: HDAUDIO\FUNC_01&VEN_10EC&DEV_0283&SUBSYS_17AA4026&REV_1000
        Manufacturer ID: 1
             Product ID: 100
                   Type: WDM
            Driver Name: RTKVHD64.sys
         Driver Version: 6.00.0001.7525 (English)
      Driver Attributes: Final Retail
            WHQL Logo'd: Yes
          Date and Size: 9/29/2015 17:56:42, 4486400 bytes
            Other Files:
        Driver Provider: Realtek Semiconductor Corp.
         HW Accel Level: Basic
              Cap Flags: 0xF1F
    Min/Max Sample Rate: 100, 200000
Static/Strm HW Mix Bufs: 1, 0
 Static/Strm HW 3D Bufs: 0, 0
              HW Memory: 0
       Voice Management: No
 EAX(tm) 2.0 Listen/Src: No, No
   I3DL2(tm) Listen/Src: No, No
Sensaura(tm) ZoomFX(tm): No

---------------------
Sound Capture Devices
---------------------
            Description: Microphone Array (Realtek High Definition Audio)
  Default Sound Capture: Yes
  Default Voice Capture: Yes
            Driver Name: RTKVHD64.sys
         Driver Version: 6.00.0001.7525 (English)
      Driver Attributes: Final Retail
          Date and Size: 9/29/2015 17:56:42, 4486400 bytes
              Cap Flags: 0x1
           Format Flags: 0xFFFFF
[close]
Title: Re: Low FPS in Fullscreen & Borderless Window
Post by: Debido on October 18, 2015, 05:56:25 AM
Sounds like the old 'need to manually configure nVidia to use the discrete graphics card when running a specific application problem'

https://answers.unrealengine.com/questions/19612/nvidia-optimus-always-using-intel-gpu.html
Title: Re: Low FPS in Fullscreen & Borderless Window
Post by: Chairman Meow on October 18, 2015, 07:44:59 AM
Thanks for your reply.
I actually did that first and it also shows that java / starsector is running on the nvidia gpu.
The good thing is in one of the comments from that link you posted it says:

Quote
To confirm this I have compiled my own 32 and 64 bit programs that use OpenGL and saw that the 32-bit program uses my NVIDIA card and the 64-bit program does not.

So I went ahead and disabled the integrated Intel GPU but no dice, same problem :/

I will keep trying and let you guys know if I figure something out.
Title: Re: Low FPS in Fullscreen & Borderless Window
Post by: Debido on October 18, 2015, 04:36:24 PM
So you're running the 64-bit JRE?

Maybe have a look at

http://eu.battle.net/wow/en/forum/topic/12990110906#7
Title: Re: Low FPS in Fullscreen & Borderless Window
Post by: Chairman Meow on October 20, 2015, 10:23:58 AM
Yeah, sorry.
Running 64bit win10 and using java 64bit.

By now I think it's a driver problem with windows 10 and the intel drivers for the integrated gpu.
seems like opengl is not correctly handed to the nvidia gpu so it switches back to software/cpu.

not sure why it works in windowed mode if I use a lower resolution than "windowed fullscreen".

thanks again to everyone who is trying to help, if I ever figure it out or a driver updated just fixes it I'll let you know.
Title: Re: Low FPS in Fullscreen & Borderless Window
Post by: Debido on October 20, 2015, 07:05:57 PM
When you add the application in nVidia, do you had the star sector launcher program? Or the Java executable in your 64 bit Java run time environment folder?
Title: Re: Low FPS in Fullscreen & Borderless Window
Post by: Chairman Meow on October 21, 2015, 08:45:11 AM
Both, I actually set the nvidia as default for all applications.
It also shows java running on the nvidia GPU while I'm ingame, it even says "java (starsector 0.65.2a RC2)"

not sure why it falls back to software mode though :((
Title: Re: Low FPS in Fullscreen & Borderless Window
Post by: validfrom on October 25, 2015, 01:26:13 PM
I have pretty much the same problem with windows 10 and starsector. I am using a Lenovo y410p with a nVidia GT 750M 2GB card and 8GB of ram. It very well at over 60 FPS when I was still using windows 8, but ever since I upgraded to windows 10 I've been getting really low FPS in game and in the menu. I've tried changing the nVidia control panel settings to force applications to use the dedicated card but the problem persists. This is with the base game without any mods.
Title: Re: Low FPS in Fullscreen & Borderless Window
Post by: Alex on October 25, 2015, 02:01:42 PM
Hmm. The only thing that comes to mind is that NVIDIA still has some driver issues to work through for windows 10, unfortunately.

(On a related note, ugh, Windows 10. Been all downhill since 7, if you ask me.)
Title: Re: Low FPS in Fullscreen & Borderless Window
Post by: validfrom on October 25, 2015, 08:04:07 PM
It's too late for me to revert back to the relatively more stable windows 8 so I guess I'll just have to wait until Nvidia fixes things on their end. Hopefully, everything will be sorted out before 0.7 releases with all the fancy new features!

Anyways, thanks for your time and I'm looking forward to playing this amazing game again  :)
Title: Re: Low FPS in Fullscreen & Borderless Window
Post by: Chairman Meow on October 27, 2015, 10:30:00 AM
remember, you can still play it at full performance using windowed mode and a resolution that is not equal to your desktop resolution (probably needs to be lower than your desktop resolution).

Just in case you wanna play right away :D

Sure hope this gets fixed with a driver update soon, don't think the devs can do anything about it.
Title: Re: Low FPS in Fullscreen & Borderless Window
Post by: validfrom on October 31, 2015, 07:27:44 PM
With your advice I managed to apply a bandaid fix by forcing the resolution override in settings.json to something like 1600x899 and running it in windowed mode. I do prefer fullscreen but at the moment this is perfectly playable.

Thanks for your help  :)
Title: Re: Low FPS in Fullscreen & Borderless Window
Post by: Chairman Meow on November 01, 2015, 04:40:39 AM
doing the same for now, glad we could help each other out until this is fixed for good :D

Edit: forcing resolution to 1600x899 in windowed still seems to load in 1600x900 or at least doesn't fix it for me unless I turn undecorated window off in the config.
That way it works fine, are you doing the same?
Title: Re: Low FPS in Fullscreen & Borderless Window
Post by: validfrom on November 01, 2015, 01:17:34 PM
Hmm, it appears that the undecorated window setting was set to false for me by default because I don't recall ever changing it. It seems that with just undecorated window set to false and the default resolution settings the FPS problems persist on my end. If your game runs fine without messing around with custom resolutions then I guess we have slightly different problems but I'm glad things worked out for the both of us in the end  :).

In case you ever want to force custom resolutions in the future I found that I had to remove the # symbol before the resolution override setting for it to actually work.
Title: Re: Low FPS in Fullscreen & Borderless Window
Post by: Chairman Meow on November 02, 2015, 09:44:58 AM
Nah, pretty sure it's the same for me.
Running on a Lenovo IdeaPad 430u with a geforce GT 730M.

Running in borderless windowed with a custom resolution will make it basically fullscreen and still show the problems.

If I turn undecorated to false so it shows borders and window title (as in decorated window) it works perfectly fine.

now I just need to figure out the actual resolution I need to force so the windows won't go off screen at the bottom :D
Title: Re: Low FPS in Fullscreen & Borderless Window
Post by: Hardlyjoking67 on November 02, 2015, 11:35:53 AM
Hey guys, I also returned to the game after a fairly long hiatus, and after upgrading to a new PC, I am also experiencing the same issue. I have encountered low fps when running fullscreen on my GPU, and my idle percentage is zero or close to zero at all times. I am using an nVidia 860M GPU, and also have integrated graphics on board via an i7. I have attempted many of the solutions already offered here on the forum, including running x64 java, allocating more memory, checking that my nVidia GPU is running the game and not the integrated graphics, running in windowed and borderless windowed, disabling Aero themes, disabling dpi scaling, disabling vSync, and checking AA settings on my card. So far, the only two solutions that have made a noticeable difference in the performance of the game are running in windowed (not borderless windowed) with a custom resolution and running the game on my integrated graphics as opposed to the 860M. I've chosen the latter as the lesser of two evils, since I can still run in full screen at 60 fps without any serious issues, but it most likely provides a lower performance ceiling than I would encounter using my graphics card. I just wanted to inform others that this issue can be reproduced, and that there is another temporary solution (running on integrated graphics). I suspect this is a result of sub-optimal interaction between nVidia hardware/drivers and Starsector, and from a development standpoint its unclear whether this is the dev team's issue to fix, but I would appreciate any attention and help that can be directed to the matter. Thanks!
Title: Re: Low FPS in Fullscreen & Borderless Window
Post by: Alex on November 02, 2015, 11:42:27 AM
Thanks for the detailed breakdown. This *really* sounds like a driver problem, unfortunately, and not something I can do anything about on my end. I mean, there's nothing in the code that works differently in fullscreen or undecorated window mode, aside from initially telling the application to run that way.

Knowing that it runs as expected on the integrated card takes the OS out of the equation - the thing changing is the drivers being used - so it's very much looking like an NVIDIA driver issue.


now I just need to figure out the actual resolution I need to force so the windows won't go off screen at the bottom :D

Just FYI, trying to force a resolution that your monitor/graphics driver doesn't support will result in it picking the closest resolution to that. So specifying something like 1600x899 will just run in 1600x900, unless the drivers can actually handle that oddball resolution, which chances are they can't.
Title: Re: Low FPS in Fullscreen & Borderless Window
Post by: Dark.Revenant on November 02, 2015, 12:49:37 PM
This has to be a driver issue, probably related to Windows 10 (are you on W10?).  There is just no real difference in code between full and windowed, aside from initialization.
Title: Re: Low FPS in Fullscreen & Borderless Window
Post by: Hardlyjoking67 on November 03, 2015, 06:20:37 AM
Rats thought I remembered to include everything. I am running windows 8.1, so I don't think this is a Windows 10 thing. And I'm also running on the newest drivers. As of now its workable, and I'm lucky enough not to have any FPS issues running off the integrated graphics package. Whatever, I'll take what I can then and be on my way. Thanks for all the help guys.