Jump to content

[1.12.x] ShowFPS


linuxgurugamer
 Share

Recommended Posts

New release, 0.2.2.1

  • Fixed dragging of numbers to anywhere
  • Added font size to config file

The dragging has been broken for a long time, I just had some time to fix it.

The config file will be created after the first time you run and exit the game with the mod installed.  File will be in GameData/ShowFPS/PluginData/settings.cfg

Link to comment
Share on other sites

  • 4 months later...

Hello @linuxgurugamer

This mod is very useful, it works also on 1.10 by the way :)

  • There are any option/way to move a little bit the print coordinates?
  • In the OP post there is a mention to settings.cfg but I think that was discontinued right?

0HzF0Uk.png

Edited by pmborg
Link to comment
Share on other sites

Hello @linuxgurugamer,

Normally my FPS are limited by the monitor 144Hz (with the v-sync on) , I don't need more :-)  to avoid over processing.

If if possible I would suggest just above 60FPS (or always) just show the integer number, like 144 FPS, instead 144.78, which is incorrect, because its limited to 144...

As can be seen on this image:

Uora8Sf.png

It's a suggestion.

 

Edited by pmborg
Link to comment
Share on other sites

On 7/19/2020 at 10:50 AM, pmborg said:

If if possible I would suggest just above 60FPS (or always) just show the integer number, like 144 FPS, instead 144.78, which is incorrect, because its limited to 144...

Offhand, if the mod is reporting 144.78, then you are doing 144.78.  Can you really tell if the monitor or videocard is exactly at 144FPS?  Is it possible that something is slightly out of spec by about 1/2 of 1%?

I'll add a simple check for above 60fps, it makes sense

 

New release, 0.2.3

  • Adjusted display of the FPS:
    • FPS > 60 now get rounded to nearest integer
    • FPS<= 60 get rounded to nearest 2 decimal places
  • Disabled the logging
Link to comment
Share on other sites

2 hours ago, linuxgurugamer said:

Offhand, if the mod is reporting 144.78, then you are doing 144.78.  Can you really tell if the monitor or videocard is exactly at 144FPS?  Is it possible that something is slightly out of spec by about 1/2 of 1%?

I'll add a simple check for above 60fps, it makes sense

 

New release, 0.2.3

  • Adjusted display of the FPS:
    • FPS > 60 now get rounded to nearest integer
    • FPS<= 60 get rounded to nearest 2 decimal places
  • Disabled the logging

Thank you @linuxgurugamer I will test it now :)

" Can you really tell if the monitor or videocard is exactly at 144FPS?"

With HDMI I can get only 100hz with Display port I have the Monitor max capability 144Hz:

F54Ue6p.png

another note, if I turn on the FPS on steam settings, it says 144 FPS also.

now looks like steam: (top right corner)

FavJ08G.png

Edited by pmborg
Link to comment
Share on other sites

@linuxgurugamer

I am using showfps to do a study on my most used addons, here I will share it:

I have a system, like I mention before in another thread, where I install mods in layers, just one click and all GameData is recreated by layers.

-----------------------------------------------------------------------------------
------------------------------
 KSP-Ultra Levels
------------------------------

Level-0: "0 KSP BaseFrameWork.bat"          (122 FPS)
    KerbalXMod CraftManager
    KSP-AVC
    PartInfo PartMapper
    HangerExtenderExtended
    ShowFPS
    MoarFEConfigs
    DraggableNavball DraggableAltimeter
    AntennaHelper
    BetterCrewAssignment

Level-1: "1 KSP InvetorySystemTools.bat" (122 FPS)
    KerbalJointReinforcementNext
    KIS
    KAS

Level-2: "2 KSP Airplanes.bat"             (122 FPS)
    SmokeScreen
    AirplanePlus
    FirespitterCore FirespitterResourcesConfig
    KSPWheel
    RasterPropMonitor-Core
    B9 B9-props B9AerospaceHX B9AnimationModules B9PartSwitch B9AerospaceLegacy

Level-3: "3 KSP ExtraParts.bat"              (122 FPS)
    CommunityResourcePack
    CommunityCategoryKit
    Mk2Expansion
    Mk3Expansion
    USITools
    Konstruction
    WaterTanks

Level-4: "4 KSP Apollo.bat"                (110 FPS)
    Fasa
    REM(need a extra patch to run on KSP1.10)BluedogDB
    SpaceY-Lifters SpaceY-Expanded
    RealScaleBoosters
    StockalikeMiningExtension
    HeatControl

Level-5: "5 KSP Interstellar.bat"          (105 FPS)
    Hangar
    USI-Core USI-FTT
    TACLS
    InterstellarFuelSwitch KSPInterstellarExtended
    BetterTimeWarpCont

Level-6: "6 KSP Alfacentauri.bat"
    NearFutureProps StationPartsExpansionRedux          (101 FPS)
    DeployableEngines NearFutureLaunchVehicles          (101 FPS)
    DeepFreeze                                                                        (101 FPS)
    REPOSoftTech-Agencies KerbalPlanetaryBaseSystems (101 FPS)
    CivilianPopulation                                       ( 95 FPS)

    KerbalEngineerRedux                                 ( 85 FPS)

    MechJeb2                                                    ( 83 FPS)
    KerbalAlarmClock                                      ( 83 FPS)

 Level-7: "7 KSP AlfaSpaceShip.bat"          ( 83 FPS)
    OPTSpacePlaneParts OPTReconfig
    SCANsat
    CryoEngines
    ConfigurableContainers GroundConstruction
    SimpleConstruction
-----------------------------------------------------------------------------------

With this I can get a sens of which add-ons are expensive in terms of FPS performance.

 

 

Full list:

ckan list

KSP found at K:/SteamLibrary/SteamApps/common/Kerbal Space Program

KSP Version: 1.10.0.2917

Installed Modules:

- AirplanePlus 26.5
- AntennaHelper 2:1.0.7.2
+ AT-Utils v1.9.5
- B9 1:v6.6.0
- B9AerospaceHX 1:v6.6.0
- B9AerospaceLegacy 1:v6.6.0
- B9AnimationModules v1.7.0
- B9PartSwitch v2.16.0
- B9-props 1:v6.6.0
+ BackgroundResources 1:V0.15.0.0
A BDB (unmanaged)
- BetterCrewAssignment 1.4
- BetterTimeWarpCont 2.3.12.6
- CivilianPopulation 1:3.0.0.9
+ ClickThroughBlocker 1:0.1.10.11
+ CommunityCategoryKit 5.1.0.0
- CommunityResourcePack 1.3.0.0
+ CommunityTechTree 1:3.4.1
- ConfigurableContainers 2.6.0
- CraftManager 1.2.0
- CryoEngines 1:1.1.3
+ CryoTanks 1.5.1
+ CryoTanks-Core 1.5.1
- DeepFreeze V0.28.0.0
+ DeployableEngines 1.2.1
- DraggableAltimeter v1.0.12
- DraggableNavball v1.0.12
+ DynamicBatteryStorage 2:2.1.6.0
- FASA 1:v7.2.6
+ FilterExtensions 3.2.5
- FirespitterCore v7.15
- FirespitterResourcesConfig v7.15
- GroundConstruction 2.6.4
+ GroundConstruction-Core 2.6.4
- Hangar 3.6.1
- HangerExtenderExtended 3.6.0
- HeatControl 0.5.1
- HooliganLabsAirships 6.4
- InterstellarFuelSwitch 3.16.0.5
+ InterstellarFuelSwitch-Core 3.16.0.5
- KAS 1.6
- KerbalAlarmClock v3.13.0.0
- KerbalEngineerRedux 1.1.7.2
- KerbalJointReinforcementNext v4.1.15
- KerbalPlanetaryBaseSystems v1.6.12
- KerbalXMod 1.1.0
- KIS 1.26
- Konstruction 1.3.0.0
- KSP-AVC 1.4.1.5
- KSPInterstellarExtended 1.25.22.5
- KSPWheel 1:0.16.14.33
+ KXAPI 1.2.0
- MechJeb2 2.10.0.0
- Mk2Expansion 2:1.8.8
- Mk3Expansion 1.4.8.6
- MoarFEConfigs 1.0.5.2
+ ModuleManager 4.1.4
- NearFutureLaunchVehicles 2.0.2
+ NearFutureProps 1:0.6.2
- OPTReconfig 2.0.7
- OPTSpacePlaneParts 1:2.1
- PartInfo 0.0.3.1
+ RasterPropMonitor-Core 1:v0.31.4
- RealScaleBoosters 0.16
+ REPOSoftTech-Agencies V1.5.7.0
- ReStock 1.1.2
- ReStockPlus 1.1.2
- SCANsat v20.2
- ShowFPS 1:0.2.3
- SimpleConstruction 1:4.0.2.6
- SmokeScreen 2.8.14.0
- SpaceY-Expanded 1.4
- SpaceY-Lifters 1.17.2
- StationPartsExpansionRedux 1.3.5
- StockalikeMiningExtension 1.1.5
- TACLS 1:V0.15.0.0
+ ToolbarController 1:0.1.9.4
+ TweakScale v2.4.3.19
- USI-Core 1.3.0.0
- USI-FTT 1.3.0.0
- USITools 1.3.0.0
- WaterTanks v1.6
+ ZeroMiniAVC 1:1.1.0.1

 

 

Edited by pmborg
Link to comment
Share on other sites

 @linuxgurugamer

For example while for all mods in ckan is just a matter of doing this:

"0 KSP BaseFrameWork.bat"

powershell -command "& { iwr https://github.com/KSP-CKAN/CKAN/releases/download/v1.28.0/ckan.exe -OutFile ckan.exe }"
ckan.exe ksp default auto
ckan.exe update
ckan.exe cache reset

ckan.exe install --headless --allow-incompatible --no-recommends KerbalXMod
ckan.exe install --headless --allow-incompatible --no-recommends CraftManager
ckan.exe install --headless --allow-incompatible --no-recommends KSP-AVC
ckan.exe install --headless --allow-incompatible --no-recommends PartInfo
ckan.exe install --headless --allow-incompatible --no-recommends HangerExtenderExtended
ckan.exe install --headless --allow-incompatible --no-recommends PartMapper
ckan.exe install --headless --allow-incompatible --no-recommends ShowFPS
ckan.exe install --headless --allow-incompatible --no-recommends DraggableNavball DraggableAltimeter

 

Install mods that are not in ckan I am doing this and the are not visible in ckan list:

"Install_bussard-fuel-scoop-system.bat" (abandon mod)

powershell -command "& { iwr https://github.com/KSP-CKAN/CKAN/releases/download/v1.28.0/ckan.exe -OutFile ckan.exe }"
ckan.exe ksp list | find "auto" >result.dat
FOR /F "tokens=4,5,6 " %a IN (result.dat) DO ECHO %a %b %c >kspdir.dat
set /p kspdir= < kspdir.dat
xcopy /y WillStr1.zip "%kspdir%"
cd /D "%kspdir%"
powershell.exe -NoP -NonI -Command "Expand-Archive 'WillStr1.zip' '.'"

 

Note: I prefer (linux) "bash", but windows is Batch!

Edited by pmborg
Link to comment
Share on other sites

5 minutes ago, pmborg said:

 @linuxgurugamer

For example while for all mods in ckan is just a matter of doing this:

"0 KSP BaseFrameWork.bat"

powershell -command "& { iwr https://github.com/KSP-CKAN/CKAN/releases/download/v1.28.0/ckan.exe -OutFile ckan.exe }"
ckan.exe ksp default auto
ckan.exe update
ckan.exe cache reset

ckan.exe install --headless --allow-incompatible --no-recommends KerbalXMod
ckan.exe install --headless --allow-incompatible --no-recommends CraftManager
ckan.exe install --headless --allow-incompatible --no-recommends KSP-AVC
ckan.exe install --headless --allow-incompatible --no-recommends PartInfo
ckan.exe install --headless --allow-incompatible --no-recommends HangerExtenderExtended
ckan.exe install --headless --allow-incompatible --no-recommends PartMapper
ckan.exe install --headless --allow-incompatible --no-recommends ShowFPS
ckan.exe install --headless --allow-incompatible --no-recommends DraggableNavball DraggableAltimeter

 

Install mods that are not in ckan I am doing this and the are not visible in ckan list:

"Install_bussard-fuel-scoop-system.bat" (abandon mod)

ckan.exe ksp list | find "auto" >result.dat
FOR /F "tokens=4,5,6 " %a IN (result.dat) DO ECHO %a %b %c >kspdir.dat
set /p kspdir= < kspdir.dat
cd /D "%kspdir%"
powershell.exe -NoP -NonI -Command "Expand-Archive 'WillStr1.zip' '.'"

 

Note: I prefer (linux) "bash", but windows is Batch!

Use Cygwin :D

Link to comment
Share on other sites

3 minutes ago, linuxgurugamer said:

Use Cygwin :D

I have all Cygwin , gitbash, WSL all!

But to give to friends *.bat is better they don't need to install nothing...  and I don't need to tell them how to install mods-packs, just a click!

Link to comment
Share on other sites

  • 5 months later...

First, let me thank you @m4v and @linuxgurugamer for this very useful mod.

On 3/20/2018 at 1:56 AM, linuxgurugamer said:

Ctrl+F8 will enable a *very* minimalist benchmark showing the average and lowest framerate. (must be visible first)

This does not seem to work. Pressing the shortcut has no visible effect. It is a minor issue though, juste letting you know. VERSION:0,2,3,0 | KSP:1.10.0.2917 x64 | OS:Windows10 x64

The counter stays visible after hiding GUI elements by pressing F2. Not sure if this is intended. Again, minor issue.

Could you please add a way to lock the position of the counter? I seem to drag it all over the place by accident. An option in settings.cfg perhaps?

 

 

Link to comment
Share on other sites

v0.2.4 is causing tremendous frame rate drops at higher time warps in KSP 1.8.1 when the FPS counter is active- it goes from 25FPS to 2 when the timewarp is turned up to 1000x. Nothing appears in the in-game console or the logs but the frame rates completely tank when the time warp goes above 10x.

0.2.3 doesn't have this issue and time warps without affecting the frame rate. I'm running a heavily modded RP-1 game but this single mod is causing the issue and rolling back to the previous version completely solves it.

Link to comment
Share on other sites

7 hours ago, jimmymcgoochie said:

v0.2.4 is causing tremendous frame rate drops at higher time warps in KSP 1.8.1 when the FPS counter is active- it goes from 25FPS to 2 when the timewarp is turned up to 1000x. Nothing appears in the in-game console or the logs but the frame rates completely tank when the time warp goes above 10x.

0.2.3 doesn't have this issue and time warps without affecting the frame rate. I'm running a heavily modded RP-1 game but this single mod is causing the issue and rolling back to the previous version completely solves it.

Tested ShowFPS_0.2.4.0 on:

KSP_1.8.1.02694 (clean install, Jumping Flea.craft, High Kerbin orbit, TimeWarp 1x to Max):

ShowFPS on = 60FPS ShowFPS off = 60FPS

KSP_1.10.0.29174 (modded install, FuelTank+9Engines, Low Kerbin orbit, TimeWarp 1x to Max):

Spoiler

Action Group Manager Renewed (ActionGroupManager 1:2.2.6.2)
Better Load Save Game Renewed (BetterLoadSaveGame 2.5.2)
Breaking Ground (BreakingGround-DLC 1.5.0)
ClickThrough Blocker (ClickThroughBlocker 1:0.1.10.15)
Craft Manager (CraftManager 1.2.0)
Editor Extensions Redux (EditorExtensionsRedux 3.4.2)
Hangar Extender (HangerExtenderExtended 3.6.0)
HyperEdit (HyperEdit 1.5.8.0)
Kerbal Alarm Clock (KerbalAlarmClock v3.13.0.0)
Kerbal Engineer Redux (KerbalEngineerRedux 1.1.8.3)
kOS: Scriptable Autopilot System (kOS 1:1.3.2.0)
KXAPI (KXAPI 1.2.0)
Making History (MakingHistory-DLC 1.10.0)
MechJeb 2 (MechJeb2 2.11.0.0)
Minimum Ambient Lighting Updated (MinAmbLightUpd 1.2.6)
Module Manager (ModuleManager 4.1.4)
notes (notes 0.16)
Notes2Log (Notes2Log 0.0.3)
QuickBrake (QuickBrake 1:1.4.0.7)
QuickExit (QuickExit 1:2.2.0.7)
QuickGoTo (QuickGoTo 1:1.4.0.8)
RasterPropMonitor (RasterPropMonitor 1:v0.31.4)
RasterPropMonitor Core (RasterPropMonitor-Core 1:v0.31.4)
RCS Build Aid (RCSBuildAid v1.0.3)
Red Onion (RedOnion 0.5.2)
SCANsat (SCANsat v20.4)
Ship Manifest (ShipManifest 6.0.2.0)
Show FPS (ShowFPS 1:0.2.4)
SpaceCore kOS Script Pack (kOS-SpaceCore 1.1.1)
SpaceTux Library (SpaceTuxLibrary 0.0.5)
StageRecovery (StageRecovery 1.9.3)
Toolbar (Toolbar 1:1.8.0.5)
Toolbar Controller (ToolbarController 1:0.1.9.4)
TotalTime (TotalTime 0.6.9)
Tracking Station Evolved (TrackingStationEvolved 6.0)
Trajectories (Trajectories v2.3.4)
VesselMover Continued (VesselMoverContinued v1.9.0)
Waypoint Manager (WaypointManager 2.8.2.6)
Zero MiniAVC (ZeroMiniAVC 1:1.1.0.1)

ShowFPS on = 45-50FPS ShowFPS off = 45-50FPS

Result: could not replicate.

Link to comment
Share on other sites

  • 6 months later...
  • 1 month later...
On 8/9/2021 at 8:28 PM, linuxgurugamer said:

New release, 0.3.0

  • Added FPS graph
  • New dependencies
    • ClickThroughBlocker
    • ToolbarController
       

Hello @linuxgurugamer:)

  • Are you sure that this new version (v0.3.0) is working properly? The new graph appears but,
  • When I press F8 to toggle it the FPS don't show on screen, but it works perfectly with (v0.2.4) even in 1.12.2

There isn't any error in log file:https://www.dropbox.com/s/fjncwfv0mxxj7hj/KSP - showFPS-0.3.0.zip?dl=0

2qaRQHg.png

For me is not critical once I still use the previous v0.2.4 good version, but I found it odd that no one had reported it before, or its just me :)

 

 

Link to comment
Share on other sites

23 hours ago, linuxgurugamer said:

It’s there, but sometimes hard to find, or even off screen.

I’ll see if I can improve its visibility

Maybe because i have 3 monitors on this version is off screen?

I will use now the 3 monitors as 1, with a resolution of: 5760x1080, if it off screen, if it is due a wrong initial pixel position calculation it will appear this time:

v0.2.4 (show the FPS)

fpkx2MJ.jpeg

v0.3.0 (don't show the FPS)

2RIlF20.jpg

But no... don't appear... in (v0.3.0).

 

Then get back to Normal setup with v0.2.4:

ZlPe5pc.png

Edited by pmborg
Link to comment
Share on other sites

  • 2 weeks later...
This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...