3jFPS-control Contents. A Plugin (lua-script) for X-Plane 10 by Jörn-Jören Jörensön

Similar documents
NVCP recommended settings for TSW incl GSync 5. Screen Settings in TSW - Graphics settings 6. TSW Settings explained and recommendations 7

Quick Start manual for Nova

spiff manual version 1.0 oeksound spiff adaptive transient processor User Manual

San Francisco was because it famous and the stunning setting between the bay and ocean makes it an incredible attractive area to fly over.

Lab Determining the Screen Resolution of a Computer

KRAMER ELECTRONICS LTD. USER MANUAL

WAVES Cobalt Saphira. User Guide

TV Character Generator

Show Designer 3. Software Revision 1.15

Section 2 Normal Procedures

MAutoPitch. Presets button. Left arrow button. Right arrow button. Randomize button. Save button. Panic button. Settings button

soothe audio processor Manual and FAQ

Background. About automation subtracks

Version 1.24 Software v6

AEO-Light 2.2 (Beta) General Information*

(Skip to step 11 if you are already familiar with connecting to the Tribot)

Sheffield Softworks. Copyright 2015 Sheffield Softworks

Linkage 3.6. User s Guide

Analysis of AP/axon classes and PSP on the basis of AP amplitude

Linrad On-Screen Controls K1JT

READ THIS FIRST. Morphologi G3. Quick Start Guide. MAN0412 Issue1.1

Q Light Controller+ Positions and EFX explained

A few quick notes about the use of Spectran V2

Syrah. Flux All 1rights reserved

PulseCounter Neutron & Gamma Spectrometry Software Manual

VeriLUM 5.2. Video Display Calibration And Conformance Tracking. IMAGE Smiths, Inc. P.O. Box 30928, Bethesda, MD USA

Table of content. Table of content Introduction Concepts Hardware setup...4

MTurboComp. Overview. How to use the compressor. More advanced features. Edit screen. Easy screen vs. Edit screen

GS122-2L. About the speakers:

Quick Guide Book of Sending and receiving card

Reference Guide Version 1.0

AVTuner PVR Quick Installation Guide

Liquid Mix Plug-in. User Guide FA

SpectraPlotterMap 12 User Guide

Dektak Step by Step Instructions:

SHENZHEN H&Y TECHNOLOGY CO., LTD

ELSA WINNER Series M a n u a l

USER GUIDE. Table of Contents

Logisim: A graphical system for logic circuit design and simulation

Operation Procedure for Phillips XL30 ESEM

LEDBlinky Animation Editor Version 6.5 Created by Arzoo. Help Document

D-901 PC SOFTWARE Version 3

LA xlimit. Manual. by tb-software (C) tb-software 2015 Page 1 of 6

Programs. onevent("can", "mousedown", function(event) { var x = event.x; var y = event.y; circle( x, y, 10 ); });

FOR WWW TEACUPSOFTWARE COM User Guide

DW Drum Enhancer. User Manual Version 1.

VIDEO GRABBER. DisplayPort. User Manual

NetLogo User's Guide

VoiceStrip for PowerCore Manual. Manual VoiceStrip for PowerCore

Problem 5 Example Solutions

Configuration options allow the trader to select up to 12 different ratios, the color, style, width and label contents can be configured too.

WAVES H-EQ HYBRID EQUALIZER USER GUIDE

Lindell 254E User Manual. Lindell 254E. User Manual

Import and quantification of a micro titer plate image

Introduction 2. The Veescope Live Interface 3. Trouble Shooting Veescope Live 10

System Requirements SA0314 Spectrum analyzer:

Vicon Valerus Performance Guide

Lindell 354E User Manual. Lindell 354E. User Manual

Using SuperTrafficBoard Client on another computer

DVB-T USB SET-TOP BOX

SPL Analog Code Plug-ins Manual Classic & Dual-Band De-Essers

imso-104 Manual Revised August 5, 2011

RELEASE NOTES. Introduction. Supported Devices. Mackie Master Fader App V4.5.1 October 2016

Eventide Inc. One Alsan Way Little Ferry, NJ

Film-Tech. The information contained in this Adobe Acrobat pdf file is provided at your own risk and good judgment.

RADEON 7200 RADEON 7000

After Effects Compositing Basics

VideoClock. Quick Start

RADEON 9000 PRO. User s Guide. Version 2.0 P/N Rev.A

Types of CRT Display Devices. DVST-Direct View Storage Tube

Contents. Welcome to LCAST. System Requirements. Compatibility. Installation and Authorization. Loudness Metering. True-Peak Metering

Network Disk Recorder WJ-ND200

Getting Graphical PART II. Chapter 5. Chapter 6. Chapter 7. Chapter 8. Chapter 9. Beginning Graphics Page Flipping and Pixel Plotting...

DVB-T2 T220 User Manual

The BAT WAVE ANALYZER project

TV Synchronism Generation with PIC Microcontroller

Tebis application software

HyperMedia User Manual

CHAPTER 1. SETUP AND SOFTWARE INSTALLATION

Software Audio Console. Scene Tutorial. Introduction:

Abbey Road TG Mastering Chain User Guide

EMMA rules - Multimedia sound & picture judging

D-Lab & D-Lab Control Plan. Measure. Analyse. User Manual

DLG Programming on the Futaba 12FG

+10db Compressor User s Manual. +10db Compressor. User s Manual

PYROPTIX TM IMAGE PROCESSING SOFTWARE

Neat Video noise reduction plug-in for After Effects (Mac)

Nintendo. January 21, 2004 Good Emulators I will place links to all of these emulators on the webpage. Mac OSX The latest version of RockNES

NOTICE. The information contained in this document is subject to change without notice.

Analyzing Modulated Signals with the V93000 Signal Analyzer Tool. Joe Kelly, Verigy, Inc.

DVB-T Box, USB Monheim/Germany Tel. +49 (0)9091/ Fax +49 (0)9091/ Hama GmbH & Co KG.

Manual Version Ver 1.0

SERIAL COMMAND SET GENERAL COMMAND SET SUMMARY SERIAL COMMAND SET USAGE

Bogart SE 3. Addition to the manual

Multiband Noise Reduction Component for PurePath Studio Portable Audio Devices

Precision DeEsser Users Guide

AB-Loudness Match. Manual. by TBProAudio (C) TBProAudio 2018 Page 1 of 9

crystal radio receiver 1921

D R M A X - 2 DDS FREQUENCY SYNTHESIZED DRM MW TRANSMITTER. User s Guide (Please read carefully before using for the first time!)

Mini Gear Indicator Manual SW024

Transcription:

3jFPS-control-1.23 A Plugin (lua-script) for X-Plane 10 by Jörn-Jören Jörensön 3j@raeuber.com Features: + smoothly adapting view distance depending on FPS + smoothly adapting clouds quality depending on FPS + nice graphical display modes + see avg. FPS, FPS-variation, effect of plugin at a glance + manual mode to test effect and find out best settings Contents 1 Introduction...2 2 Requirements...2 2.1 X-Plane version...2 2.2 FlyWithLua...2 3 Installation...2 4 Configuration...3 4.1 Quick-start settings...3 4.2 Detailed settings...3 4.2.1 Auto mode settings...4 4.2.2 World view distance control settings...4 4.2.3 Clouds density control settings...4 4.2.4 Clouds puff size settings...5 4.2.5 Display settings...5 5 Keyboard / joystick commands...5 6 Usage in X-Plane...6 6.1 FPS display...6 6.2 Display modes...7 6.3 Auto / manual mode...8 7 Known issues...10 7.1 Real Terra Haze / compatibility...10 7.2 Real Terra Haze / flickering clouds...10 7.3 Objects pop up...10 1/10

1 Introduction 3jFPS-control is designed to give you a smoother flight experience, by automatically reducing world view distance and/or clouds density/size in real time, when your FPS go to low. When the frame rate gets better, view distance and clouds density get automatically increased again. On my system (mid-range CPU and very mid-range GPU) the script works very well. It reduces load of GPU, CPU and bus by controlling the number of objects and cloud puffs to draw, when scenery or weather get a little too hard. I am not sure how good it works on low-end or high-end systems. If your performance is quite ok but goes down in some situations, I recommend you give it a try. But... This script won't do miracles. If you have trouble with your FPS in general, it probably won't help. I have tried to keep the visible effects as low as possible, so the script changes all parameters very smoothly. The basic idea of adapting the LOD-bias based on the current frame rate comes from AUTO_LOD1.3 by Gerhard from www.x-plane.at. Please visit his website for lots of extremely nice scenery (esp. austrian airports), plugins, objects and so on! 2 Requirements 2.1 X-Plane version I have tested the plugin with X-Plane 10.36, 10.40 and 10.45. Other versions of X-Plane 10 are likely to work too, but it is not guaranteed, as the script works with 3 datarefs that could possibly change in every new release. 2.2 FlyWithLua 3jFPS-control is a lua-script and needs the plugin FlyWithLua installed. See the files section of www.x-plane.org for details, download and installation instructions, if you don't have it already. http://forums.x-plane.org/index.php?/files/file/17468-flywithlua-for-xp9-and-xp10/ The script was tested with FlyWithLua 2.4.0 but it should work with other (esp. higher) versions too. FlyWithLua is a great plugin by X-Friese, which makes it very easy to extend X-Plane with small scripts. 3 Installation Simply put the script file 3jFPS-control.lua in the scripts folder of FlyWithLua: X-Plane 10/Resources/plugins/FlyWithLua/Scripts/ That's it. 2/10

4 Configuration To configure 3jFPS-control edit the script file with a text editor. In the first section you will find all variable definitions. It is recommended to keep a copy of the original script file before you edit it. Just in case... There are 3 levels of configuration: 1. QUICK-START SETTINGS: If you only want to fly, just change the values here. 2. DETAILED SETTINGS: Here you can do a more detailed configuration, but for this you have to experiment some time to find the best settings. 3. ADVANCED SETTINGS: As it says, for advanced users only, see the comments in the script file for further information. 4.1 Quick-start settings For an easy and fast configuration, simply edit these values (to be found at the top of the script file): jjjfpsc_qsposition: Position of the display, "top-left" (default), "top-right", "bottom-left" or "bottom-right" jjjfpsc_qsaimedfps: The FPS value you want to achieve, e.g. 30 (default, normal system) or 60 (high-end system). Should be a realistic value for your system! jjjfpsc_qsautoviewdistance: Presets for the view distance: "lo", "mid", "hi" or "off". I recommend to start with "lo". If you have a strong system, you can try "mid" or "hi", when you feel that view distance gets reduced too much. Set it to "off", when you want only the clouds details to be reduced. (That would make sense, when your FPS only go down on cloudy weather.) jjjfpsc_qsautocloudquality: Preset for the cloud rendering quality: "lo", "mid", "hi", "off". I recommend to start with "lo". If you have a strong system, you can try "mid" or "hi", when you feel that the clouds quality get reduced too much. Set it to "off", when you want only the view distance to be reduced. (That would make sense, when your FPS don't go down, even on very cloudy weather.) 4.2 Detailed settings For a more accurate configuration: Find out, how the view distance and clouds density affect your FPS. It is recommended to fly to a place with many objects (houses, trees etc.) where your computer struggles with the framerate. Then pause XPlane and set a more or less cloudy weather. 3/10

Next, watch the FPS value and activate the manual mode (see 6.3 Auto / manual mode). Now move view distance "LOD" up and down and see how the FPS react on this. Then move clouds density "COD" up and down and see how the FPS react. Do the same with clouds puff size "CPR". Then, move them all up and down and try to get a feeling what helps most with the FPS and what reduction of quality you can accept. Then, edit the following values: Please NOTICE: Set jjjfpsc_qsusequickstartsettings = false, otherwise some of the detailed settings will be overwritten by the quick-start settings! 4.2.1 Auto mode settings jjjfpsc_automode: if "true" start in auto mode, if "false" start in manual mode jjjfpsc_autofpsmin: if FPS go below this value, view distance and/or cloud quality will be reduced (default 27) Put your aimed FPS value here, minus 3 to 5. jjjfpsc_autofpsmax: if FPS go above this value, view distance and/or cloud quality will be increased (default 30) Put your aimed FPS value here (maybe plus 2 or 3). 4.2.2 World view distance control settings jjjfpsc_lodmin: LOD-bias for minimum view distance in auto mode (higher values mean you will see less objects when you have bad FPS) (default 4.8) Fly where are lots of objects, pause the sim, switch to manual mode (see 6.3 Auto / manual mode) and change the LOD value up and down to find out what is perfect for you as the smallest view distance you can accept for better FPS. jjjfpsc_lodmax: LOD-bias for maximum view distance in auto mode (lower values mean you will see objects farer away when you have good FPS) (default 1.0 / with strong CPU and GPU try 0.5 or even 0.1) Fly where are lots of objects, pause the sim, switch to manual mode (see 6.3 Auto / manual mode) and change the LOD value up and down to find out what is perfect for you as the highest view distance you want to have when your FPS are good. 4.2.3 Clouds density control settings jjjfpsc_codmin: "cloud overdraw control"-value for minimum clouds density in auto mode (higher values mean less cloud puffs are drawn when you have bad FPS) (default 0.9) Fly with cloudy weather, pause the sim, switch to manual mode (see 6.3 Auto / manual mode) and change the COD value up and down to find out what is perfect for you as the lowest cloud density you can accept for better FPS. 4/10

jjjfpsc_codmax: "cloud overdraw control"-value for maximum clouds density in auto mode (lower values mean more cloud puffs are drawn when you have good FPS) (default 0.75, that is XP's default value) Fly with cloudy weather, pause the sim, switch to manual mode (see 6.3 Auto / manual mode) and change the COD value up and down to find out what is perfect for you as the highest cloud density you want to have when your FPS are good. (I would strongly recommend to use 0.75, lower values could have very bad influence on performance without any noticable effect on how the clouds look.) 4.2.4 Clouds puff size settings jjjfpsc_cprmin: "cloud plot radius"-value for minimum clouds puff size in auto mode (lower values mean cloud puffs get smaller when you have bad FPS) (default 0.8) Fly with cloudy weather, pause the sim, switch to manual mode (see 6.3 Auto / manual mode) and change the CPR value up and down to find out what is perfect for you as the smallest cloud puffs you can accept for better FPS. jjjfpsc_cprmax: "cloud plot radius"-value for maximum clouds puff size in auto mode (higher values mean cloud puffs get bigger when you have good FPS) (default 1.0, that is XP's default value) Fly with cloudy weather, pause the sim, switch to manual mode (see 6.3 Auto / manual mode) and change the CPR value up and down to find out what is perfect for you as the biggest cloud puffs you want to have when your FPS are good. (I would recommend to use 1.0) 4.2.5 Display settings You can customize the way 3jFPS-control is displayed with the following variables: jjjfpsc_displaymode: Default display mode when X-Plane is started 0 = no display, 1 = numeric display, 2 = numeric + graphic display, 3 = graphic only jjjfpsc_displayopacity: opacity of display 0.0 = invisble, 1.0 = fully opaque (default is 0.8) jjjfpsc_displayx: horizontal position in pixels if positive: pixels from left side of screen if negative: pixels from right side of screen jjjfpsc_displayy: vertical position in pixels if positive: pixels from bottom of screen if negative: pixels from top of screen 5 Keyboard / joystick commands You can use X-Plane's keyboard / joystick assignments to control the following functions: 1. FlyWithLua/3jFPS-control/toggle_display_mode: Swicth between the display modes 2. FlyWithLua/3jFPS-control/toggle_auto_mode: Turn automatic control of view distance/clouds density on/off 5/10

6 Usage in X-Plane When 3jFPS-control is installed correctly and you run X-Plane, it should show a FPS display on your screen. (Unless you did not set display mode "none" as default.) 6.1 FPS display 3jFPS-control calculates current FPS by measuring the system time. It does not use X-Plane's FPS value because this does not go below 20, even if your actual frame rate is much lower. The displayed FPS value is smoothed. That means the value doesn't change with every frame, you see an average value of the last frames. The FPS that are displayed (and used to control view distance / clouds density) are calculated every frame like this: smoothfps = (smoothfps*19 + currentfps)/20 6/10

6.2 Display modes 7/10

Click on the upper line (where the FPS are shown) to switch between the following display modes: numeric: show all values as numbers numeric+graphic: show all values as numbers and graphical graphic: show all values graphical none: no display Graphic display mode: FPS go from left (low) to right (high), the limits of the scale can be configured in the script file. Red represents "bad FPS" (<= 20), yellow means "ok FPS" (> 20 and < 30*) and green is "good FPS" (>=30*). *when you use the quick-start settings 30 will be replaced with the value of jjjfpsc_qsaimedfps The white vertical line indicates your current FPS. The slightly lighter area left and right from the white FPS line shows the FPS variation. Here you can see between which values your FPS vary. (These minimum / maximum values of course use the real notsmoothed FPS to react on variations of single frames.) If the variation area is very close around the white line you have very stable FPS. If the white line is for example around 30 FPS but the lighter area (variation) moves around somewhere in the red, it means you have average FPS about 30, but you have drop-outs where one or a few frames go below 20. 6.3 Auto / manual mode To activate the manual mode, first switch to display mode "numeric". Then click on the line(s) below the upper line to toggle between auto mode and manual mode. In manual mode, the indicators "LOD", "COD" and "CPR" are displayed in red. In manual mode ("LOD" displayed in red) to change the view distance: Move the mouse over the "LOD" value (2nd line from top) and use the mouse wheel to increase or decrease the view distance. You can change it from 0.1 (see objects that are VERY far) to 10.0 (see only VERY near objects). Because this mode is for testing, the LOD-bias limits you have defined (default 1.0 to 4.8) do not apply. In manual mode ("COD" displayed in red) to change the clouds density: Move the mouse over the "COD" value (3rd line from top) and use the mouse wheel to increase or decrease density. You can change it from 0.5 (LOTS of cloud puffs) to 1.0 (very FEW clouds puffs), XP's default is 0.75. Because this mode is for testing, the COD limits you have defined (default 0.75 to 0.9) do not apply! 8/10

In manual mode ("CPR" displayed in red) to change the clouds puff size: Move the mouse over the "CPR" value (4th line from top) and use the mouse wheel to increase or decrease the size of the cloud puffs. You can change it from 1.5 (very big cloud puffs) to 0.5 (very small clouds puffs), XP's default is 1.0. Because this mode is for testing, the CPR limits you have defined (default 0.8 to 1.0) do not apply! 9/10

7 Known issues 7.1 Real Terra Haze / compatibility 3fFPS-control is only compatible with RTH 4.0 (supposedly with higher version too). If you are using an older version of RTH, please update it. 7.2 Real Terra Haze / flickering clouds If you use Real Terra Haze, please read carefully: RTH also changes cloud density and cloud puff size, this leads to peridoic flickering of the clouds (about once in a second), as both plugins work with these parameters. There are 2 solutions: 1. Deactivate automatic adaption of cloud qualitiy in 3jFPS-control: Set jjjfpsc_qsautocloudquality = "off" (if you are using the quick-start settings) or jjjfpsc_codactive = false and jjjfpsc_cpractive = false (detailed settings) Then 3jFPS-control will only change the view distance to increase performance. 2. For skilled users: Modify RTH.lua (please make a safety copy of it first!): Search for "overdraw_control" in RTH.lua, you will find 2 lines like this: set( "sim/private/controls/clouds/overdraw_control", cld_control) change both lines to -- set( "sim/private/controls/clouds/overdraw_control", cld_control) (simply put two "-" at the beginning of the line, this deactivates it) then serach for "plot_radius", you will find 1 line like this: set( "sim/private/controls/clouds/plot_radius", cloud_plot ) change it to -- set( "sim/private/controls/clouds/plot_radius", cloud_plot ) Save RTH.lua (you have made a backup of the file, right?) and you're done. Your modified RTH won't affect cloud density and cloud puff size anymore and the flickering is gone. 7.3 Objects pop up The automatic adaption of the view distance during flight, sometimes let some objects suddenly pop up. (I call it the "FSX-effect", though here it is about single objects, not whole forests...) In theory that should not happen, as the view distance is changed very smoothly by the plugin. But I guess messing around with the LOD-bias-ratio sometimes can confuse X-Plane's (very well programmed, no FSX-effect normally) loading/pre-loading algorithms for objects. 10/10