Re: [Flightgear-devel] Removing landclass seams
Thorsten, A palette of 16 standard terrain textures can be stored in a single 2048x2048 texture sheet and referenced with a multi-texture coordinate, so we don't necessarily run out of texture units. A similar palette of overlay textures for all landclasses can be stored. You probably want to use 2D array textures where you've got them (all dx10-class hardware). This lets you avoid accidental sampling across borders, need for custom mipmap generation, coordinate fixups in the shader, etc. At least 64 layers are required to be supported, which ought to be more than enough. Which reminds me - is there a performance penalty for using many uniforms? My impression is not, at least I've never seen any, but it'd be good to have this confirmed. Yes, there is. It varies wildly across drivers and hardware though. Expect dx9-class hardware to be weirder about this. -- Chris -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnmore_122712 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] license
I still think we need another license for sceneries etc. ... not allowing any commmercial use. Why? Freedom Zero matters just as much for things other than code. -- Chris -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Compiling 2.8.0
Looks like its not bothering to link against libm (the system math library) On 5/09/2012 7:53 PM, zezinho lists.jjo...@free.fr wrote: hi, I am trying to package 2.8.0 in my Linux Mageia system, which already brings 2.6.0 in rpms. The 2.8 compilation fails with below error, any hints please? Is it a new build dependency? [ 4%] Building CXX object src/FDM/YASim/CMakeFiles/yasim.dir/FGFDM.cpp.o CMakeFiles/ShivaVG.dir/shContext.c.o: In function `vgRotate': /home/jose/rpm/BUILD/flightgear-2.8.0/src/Canvas/ShivaVG/src/shContext.c:480: undefined reference to `sincosf' CMakeFiles/ShivaVG.dir/shGeometry.c.o: In function `shSubrecurseArc': /home/jose/rpm/BUILD/flightgear-2.8.0/src/Canvas/ShivaVG/src/shGeometry.c:173: undefined reference to `sincosf' CMakeFiles/ShivaVG.dir/shGeometry.c.o: In function `shStrokeJoinRound': /home/jose/rpm/BUILD/flightgear-2.8.0/src/Canvas/ShivaVG/src/shGeometry.c:431: undefined reference to `acosf' /home/jose/rpm/BUILD/flightgear-2.8.0/src/Canvas/ShivaVG/src/shGeometry.c:423: undefined reference to `sincosf' /home/jose/rpm/BUILD/flightgear-2.8.0/src/Canvas/ShivaVG/src/shGeometry.c:431: undefined reference to `sqrtf' /home/jose/rpm/BUILD/flightgear-2.8.0/src/Canvas/ShivaVG/src/shGeometry.c:431: undefined reference to `sqrtf' CMakeFiles/ShivaVG.dir/shGeometry.c.o: In function `shStrokePath': /home/jose/rpm/BUILD/flightgear-2.8.0/src/Canvas/ShivaVG/src/shGeometry.c:683: undefined reference to `acosf' /home/jose/rpm/BUILD/flightgear-2.8.0/src/Canvas/ShivaVG/src/shGeometry.c:683: undefined reference to `cosf' /home/jose/rpm/BUILD/flightgear-2.8.0/src/Canvas/ShivaVG/src/shGeometry.c:648: undefined reference to `sqrtf' /home/jose/rpm/BUILD/flightgear-2.8.0/src/Canvas/ShivaVG/src/shGeometry.c:683: undefined reference to `sqrtf' /home/jose/rpm/BUILD/flightgear-2.8.0/src/Canvas/ShivaVG/src/shGeometry.c:683: undefined reference to `sqrtf' CMakeFiles/ShivaVG.dir/shPaint.c.o: In function `shGenerateStops': /home/jose/rpm/BUILD/flightgear-2.8.0/src/Canvas/ShivaVG/src/shPaint.c:275: undefined reference to `floorf' CMakeFiles/ShivaVG.dir/shPaint.c.o: In function `shDrawLinearGradientMesh': /home/jose/rpm/BUILD/flightgear-2.8.0/src/Canvas/ShivaVG/src/shPaint.c:431: undefined reference to `sqrtf' /home/jose/rpm/BUILD/flightgear-2.8.0/src/Canvas/ShivaVG/src/shPaint.c:429: undefined reference to `sqrtf' CMakeFiles/ShivaVG.dir/shPaint.c.o: In function `shDrawRadialGradientMesh': /home/jose/rpm/BUILD/flightgear-2.8.0/src/Canvas/ShivaVG/src/shPaint.c:648: undefined reference to `acosf' /home/jose/rpm/BUILD/flightgear-2.8.0/src/Canvas/ShivaVG/src/shPaint.c:667: undefined reference to `ceilf' /home/jose/rpm/BUILD/flightgear-2.8.0/src/Canvas/ShivaVG/src/shPaint.c:506: undefined reference to `sincosf' /home/jose/rpm/BUILD/flightgear-2.8.0/src/Canvas/ShivaVG/src/shPaint.c:506: undefined reference to `sincosf' /home/jose/rpm/BUILD/flightgear-2.8.0/src/Canvas/ShivaVG/src/shPaint.c:685: undefined reference to `sqrtf' /home/jose/rpm/BUILD/flightgear-2.8.0/src/Canvas/ShivaVG/src/shPaint.c:551: undefined reference to `sqrtf' /home/jose/rpm/BUILD/flightgear-2.8.0/src/Canvas/ShivaVG/src/shPaint.c:620: undefined reference to `sqrtf' /home/jose/rpm/BUILD/flightgear-2.8.0/src/Canvas/ShivaVG/src/shPaint.c:605: undefined reference to `sqrtf' /home/jose/rpm/BUILD/flightgear-2.8.0/src/Canvas/ShivaVG/src/shPaint.c:605: undefined reference to `sqrtf' CMakeFiles/ShivaVG.dir/shPaint.c.o:/home/jose/rpm/BUILD/flightgear-2.8.0/src/Canvas/ShivaVG/src/shPaint.c:605: more undefined references to `sqrtf' follow CMakeFiles/ShivaVG.dir/shParams.c.o: In function `shValidInputFloat2Int': /home/jose/rpm/BUILD/flightgear-2.8.0/src/Canvas/ShivaVG/src/shParams.c:171: undefined reference to `floorf' /home/jose/rpm/BUILD/flightgear-2.8.0/src/Canvas/ShivaVG/src/shParams.c:171: undefined reference to `floorf' /home/jose/rpm/BUILD/flightgear-2.8.0/src/Canvas/ShivaVG/src/shParams.c:171: undefined reference to `floorf' /home/jose/rpm/BUILD/flightgear-2.8.0/src/Canvas/ShivaVG/src/shParams.c:171: undefined reference to `floorf' /home/jose/rpm/BUILD/flightgear-2.8.0/src/Canvas/ShivaVG/src/shParams.c:171: undefined reference to `floorf' CMakeFiles/ShivaVG.dir/shParams.c.o:/home/jose/rpm/BUILD/flightgear-2.8.0/src/Canvas/ShivaVG/src/shParams.c:171: more undefined references to `floorf' follow CMakeFiles/ShivaVG.dir/shPath.c.o: In function `shTransformSegment': /home/jose/rpm/BUILD/flightgear-2.8.0/src/Canvas/ShivaVG/src/shPath.c:1026: undefined reference to `sincosf' CMakeFiles/ShivaVG.dir/shPath.c.o: In function `shRealCoordToData': /home/jose/rpm/BUILD/flightgear-2.8.0/src/Canvas/ShivaVG/src/shPath.c:316: undefined reference to `floorf' /home/jose/rpm/BUILD/flightgear-2.8.0/src/Canvas/ShivaVG/src/shPath.c:316: undefined reference to `floorf' /home/jose/rpm/BUILD/flightgear-2.8.0/src/Canvas/ShivaVG/src/shPath.c:316: undefined reference to `floorf'
Re: [Flightgear-devel] Patch for metar.exe for windows
Geoff, your patch is asking for the quirky old win95-era winsock1.1. Is this intentional? WSACancelBlockingCall and friends don't exist in modern winsock. -- Chris On Sat, Jul 28, 2012 at 5:03 AM, Geoff McLane ubu...@geoffair.info wrote: On Fri, 2012-07-27 at 17:39 +0100, James Turner wrote: On 27 Jul 2012, at 16:37, Geoff McLane wrote: For a long, LONG time the small utility program metar.exe has failed to work in windows... It turns out WSAStartup() is NOT called, thus the HTTP request always fails... Applied this simple patch below, and all is well ;=)) Hope this can get into fg git, and I hope pushed to Release/2.8.0 as well, and thus get into the next fgrun release 2.8 windows install... There's an even simpler fix: call: int simgear::Socket::initSockets() Which does whatever platform-specific socket initialisation is required. James Hi James, Just as my patch does... SAME code except for the throw sg_exception() ;=)) So 6 to one, and half dozen to the other... Just hope one of them gets pushed ;=)) Regards, Geoff. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Functions to textures?
Somewhat inversely, I'm also wondering if a simple texture1D() lookup might not be faster than evaluating the light function e / pow((1.0 + a * exp(-b * (x-c)) ),(1.0/d)) three times to get an (rgb)-triplet. That depends a lot on the GPU, and how coherent the texture coordinates are across a triangle. You also need enough ALU work elsewhere in the shader to mask the latency of the texture lookup. For the existing noise texture generation, take a look at make3DNoiseImage in scene/material/TextureBuilder.cxx in the simgear tree. This particular texture is filled CPU-side, but if you're more comfortable expressing things in a shader, you/someone could rig up some FBO wiring to quickly render a shader-defined function into a texture. -- Chris -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] DDS usage in effects files
If DDS is not politically acceptable, there should be an alternative way of providing premipped textures. Mipmap generation is a *significant* portion of the load time, particularly on the nicer aircraft with large textures. Even something as simple as a bunch of PNGs concatenated from small to large mips. -- Chris -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] A plan for a 3.0 release?
Fragment discard isn't anywhere near as free or beneficial as you think it is. It's pretty crippling on a lot of older hardware. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Nasal CG: (Was: Sea color)
I have been working on a 4-color incremental mark/sweep collector with the intention of merging it into the Nasal interpreter. The work so far can be found at http://github.com/chrisforbes/incgc; There's still quite a lot to do, but the path is clear. -- Chris On Sat, May 19, 2012 at 9:51 PM, Erik Hofman e...@ehofman.com wrote: On Sat, 2012-05-19 at 10:22 +0100, Vivian Meazza wrote: I'm still hopeful that we will get a better GC. If someone wants to try to improve it this document might help: http://engineering.twitter.com/2011/03/building-faster-ruby-garbage-collector.html Erik -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] [PATCH] nasal: parse: fix typo in comment
--- simgear/nasal/parse.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simgear/nasal/parse.c b/simgear/nasal/parse.c index 2e66d8f..10339c8 100644 --- a/simgear/nasal/parse.c +++ b/simgear/nasal/parse.c @@ -311,7 +311,7 @@ static struct Token* parsePrecedence(struct Parser* p, } // Another one: the . and (postfix) []/() operators should -// really be the same precendence level, but the existing +// really be the same precedence level, but the existing // implementation doesn't allow for it. Bump us up a level if we // are parsing for DOT but find a LPAR/LBRA at the end of the // list. -- 1.7.10.4 -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] [PATCH] simgear: update .gitignore to include all current build results
simgear build off /next was leaving a bunch of untracked and unignored files lying around. most of these are new binaries, but some are intermediate files generated during the build. updates .gitignore to ignore all of them. --- .gitignore | 16 1 file changed, 16 insertions(+) diff --git a/.gitignore b/.gitignore index a6fdabb..1a8431a 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,19 @@ CTestTestfile.cmake install_manifest.txt build* Build +DartConfiguration.tcl +simgear/environment/test_metar +simgear/io/httpget +simgear/io/test_binobj +simgear/io/test_http +simgear/io/test_sock +simgear/magvar/test_magvar +simgear/math/geometry_test +simgear/math/math_test +simgear/misc/test_path +simgear/misc/test_strings +simgear/misc/test_tabbed_values +simgear/props/test_propertyObject +simgear/props/test_props +simgear/scene/tgdb/BucketBoxTest +simgear/xml/expat_config.h -- 1.7.10.4 -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] [PATCH] fg: update gitignore
Update .gitignore to ignore another build result --- .gitignore |1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 8a18462..d8d0fd4 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ CTestTestfile.cmake .kdev4 *.kdev4 *.pyc +src/FDM/YASim/yasim-proptest -- 1.7.10.4 -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] [PATCH V2] fg: update gitignore
Update .gitignore to ignore another build result V2: Ignore the install_manifest too. --- .gitignore |2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 8a18462..1524d4c 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,5 @@ CTestTestfile.cmake .kdev4 *.kdev4 *.pyc +src/FDM/YASim/yasim-proptest +install_manifest.txt -- 1.7.10.4 -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Random buildings improvements - phase 2
I would be happy to set up an automated are we fast yet-style system for FG. It would be nice to have perhaps 10 minutes worth of (representative) test that the machine can just run against every commit. What hardware do people think is actually a sensible baseline? The guy with the i5@3.3/8G/GT450 (and taking 50ms/frame for full-noise rembrandt) has a crapton of hardware grunt -- no current commercial game is going to bring that machine to its knees -- we're just *slow*. -- Chris -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Terrain Haze v1.3
Only a win if 1) your draw order wrt depth is chaotic and unfixable, and 2) you are fillrate bound ... -- Chris -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Terrain Haze v1.3
You'll have to elaborate on how 'spin' is special. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Terrain Haze v1.3
Presumably all these effects could actually be done as one screenspace pass? -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Terrain Haze v1.3
It would be interesting to use skeletal animation to get rid of some of the batch spam with complex multipart models. It wouldn't even necessarily require reworking the model data -- we could initially do the merge and bone attachment when a model is loaded. What are the animation cases? So far I have: - Things move or rotate - Things get removed completely Both of these are representable easily in a matrix palette (removal via w=0); Anything else? -- Chris On Sat, Apr 28, 2012 at 5:30 AM, Renk Thorsten thorsten.i.r...@jyu.fi wrote: This doesn't happen when you click on another slider or when we start at 1. Should be something specific to landmass. Tenuous, but: Terrain and models are sent to the same shader code (terrain-haze.*) by the effect file technique 5. To switch the detailed terrain rendering on, I used the landmass slider (since I remember snow first being available under landmass) - so that decides if terrain and models use the same or different shaders - if quality is 4, then terrain-haze-detaild.* is used for terrain but still terrain-haze.* by models (which shouldn't get snow, are not large enough for structured fog and might be dust-free). That makes the landmass slider special. What I don't understand is why this should fail specifically for models and work for terrain and why it should fail specifically at startup but not when you touch the slider. * Thorsten -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] An empassioned plea
What do people think about dynamically scaling the eye candy to meet a target framerate? -- For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] An empassioned plea
Assuming shaders ON, you can scale the fragment workload continuously by using dynamic resolution rendering. Pick your resolution per-frame, pay a constantish cost to copy it to the display buffer (which you're paying anyway if you need to tonemap down from an hdr buffer) -- For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] An empassioned plea
What *is* the baseline hardware fg ought to be aiming at? -- Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app monitoring today. Free. http://p.sf.net/sfu/Boundary-dev2dev___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] [Rembrandt] the plan
Ignoring the horrible artifacts for a moment, I think we need at least one more mip level on the instrument faces for the 172. Even at that low resolution they are very blurry. On Mon, Apr 16, 2012 at 9:24 PM, Martin Spott martin.sp...@mgras.net wrote: Frederic Bouvier wrote: This shader error affects shadow rendering and for now, I don't have a replacement. The only thing I can propose for this kind of card, is to disable shadow rendering : --prop:/sim/rendering/shadows/enabled=false Here's your weekly screenshot from 1 hour old GIT: jive: 11:14:57 ~ find .fgfs* find: No match. jive: 11:15:06 ~ env | grep \^FG FG_HOME=/opt/FlightGear FG_ROOT=/home/martin/SCM/FlightGear/fgdata jive: 11:15:10 ~ fgfs --timeofday=noon --enable-rembrandt --prop:/sim/rendering/shaders/quality-level=0 --prop:/sim/rendering/shaders/skydome=false --prop:/sim/rendering/random-vegetation=0 --prop:/sim/rendering/no-16bit-buffer=true --prop:/sim/rendering/shadows/enabled=false|tee fgfs-rembrandt_03.txt http://foxtrot.mgras.net/bitmap/FGFS/fgfs-rembrandt_03.png http://foxtrot.mgras.net/bitmap/FGFS/fgfs-rembrandt_03.txt Reminder, this is on stable Debian Linux/AMD64, Nvidia GeForce 7950 GT, closed source driver version 295.40. Cheers, Martin. -- Unix _IS_ user friendly - it's just selective about who its friends are ! -- -- For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel -- For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Workaround: c172p on MacBook Pro with Intel HD3000
Presumably you could just ask osg or the gl to discard the top mip level(s) rather than altering the source art to work around apple's driver bugs? -- For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] More Rembrandt Feedback
It's possible to have two layers of shadow map to separate static and dynamic things, but at a significant cost (you need the extra buffer, and the memory bandwidth to sample it, ...). Probably not a win on the kind of hardware that needs a speedup here. On Wed, Apr 4, 2012 at 7:45 AM, Vivian Meazza vivian.mea...@lineone.net wrote: Stuart wrote Hi All, Rembrandt works well on my GT260M, and really moves FG's graphics on massively. I think it's a fantastic enhancement to FG, and we should really consider naming the July/August release as v3.0.0. Does anyone know whether FG is unique amongst desktop simulators in offering this? I have no experience of X-Plane nor FS-X. I've noticed significant slowdown on my computer in the following circumstances: - Forests (e.g. KHAF). Having not looked at the code, my guess is that some NodeVisitor for the rending is delving too deeply into the OSG tree for the random vegetation. - Urban areas. My guess here is that is purely due to the number of models being rendered, each of which is casting a shadow. I know that there are still optimisations to be made, but could I suggest a property switch to limit shadowing to the user's aircraft? IMO the self-shadowing in the aircraft cockpit is the most impressive part of Rembrandt, and the combination of that plus shadowing on the ground might be an acceptable frame-rate compromise for many users. Don't get over excited. Fred is doing a great job, but there are many bugs to iron out yet. We haven't been able to port the water shader nor the ubershader completely to Project Rembrandt yet . Each aircraft in the inventory needs checking for 2 sided faces, panel lights need converting, and nice to have are nav. lights and landing lights. Much of the shared and scenery models need similar checking: the windsock is an obvious one. Can you imagine the task for USS Vinson? Random Vegetation is unusable. Frame rate is taking a big hit for most if not all systems . With a fair wind, and if we can jump over some of the technical hurdles, I think it might just be feasible to get something called FG 3.0.0 out of the door by the end of this year, but I wouldn't bet on it at this stage. Vivian -- Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app monitoring today. Free. http://p.sf.net/sfu/Boundary-dev2dev ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel -- Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app monitoring today. Free. http://p.sf.net/sfu/Boundary-dev2dev ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Project Rembrandt - next steps
I doubt you're going to have an acceptable experience using a deferred renderer on a go7400, regardless of driver bugs. There's not a lot of fillrate there. On 7/03/2012 4:42 AM, Arnt Karlsen a...@c2i.net wrote: On Sat, 03 Mar 2012 21:17:30 +0100, Torsten wrote in message 4f527c5a.5060...@t3r.de: The screen stays white with three black corners (top right, bottom right and bottom left). No splash screen. I can exit after some time with (Esc)-(Enter). GPU is GeForce Go 7400 with latest driver. Anything I can do to help debugging? ..try the nouveau driver, it _might_ work here, and will in any case give a different set of error messages. -- ..med vennlig hilsen = with Kind Regards from Arnt Karlsen ...with a number of polar bear hunters in his ancestry... Scenarios always come in sets of three: best case, worst case, and just in case. -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] [PATCH] TrafficMgr: remove ~5M of unnecessary heap churn during startup
--- src/Traffic/TrafficMgr.cxx |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/src/Traffic/TrafficMgr.cxx b/src/Traffic/TrafficMgr.cxx index 44e8567..d4f20b3 100644 --- a/src/Traffic/TrafficMgr.cxx +++ b/src/Traffic/TrafficMgr.cxx @@ -674,9 +674,7 @@ void FGTrafficManager::endElement(const char *name) void FGTrafficManager::data(const char *s, int len) { -string token = string(s, len); -//cout Character data string(s,len) endl; -elementValueStack.back() += token; +elementValueStack.back().append(s, len); } void FGTrafficManager::pi(const char *target, const char *data) -- 1.7.5.4 -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] [PATCH] SchedFlight: make comparison inlinable
Reduces the perf impact of FGAISchedule::findAvailableFlight() --- src/Traffic/SchedFlight.cxx |5 - src/Traffic/SchedFlight.hxx |5 - 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/Traffic/SchedFlight.cxx b/src/Traffic/SchedFlight.cxx index 5339a29..1b8586f 100644 --- a/src/Traffic/SchedFlight.cxx +++ b/src/Traffic/SchedFlight.cxx @@ -289,8 +289,3 @@ bool FGScheduledFlight::initializeAirports() return true; } - -bool compareScheduledFlights(FGScheduledFlight *a, FGScheduledFlight *b) -{ - return (*a) (*b); -}; diff --git a/src/Traffic/SchedFlight.hxx b/src/Traffic/SchedFlight.hxx index 0567102..c95f41d 100644 --- a/src/Traffic/SchedFlight.hxx +++ b/src/Traffic/SchedFlight.hxx @@ -121,7 +121,10 @@ typedef vectorFGScheduledFlight*::iterator FGScheduledFlightVecIterator; typedef std::map std::string, FGScheduledFlightVec FGScheduledFlightMap; -bool compareScheduledFlights(FGScheduledFlight *a, FGScheduledFlight *b); +static inline bool compareScheduledFlights(FGScheduledFlight *a, FGScheduledFlight *b) +{ + return (*a) (*b); +} #endif -- 1.7.5.4 -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] [PATCH] TrafficMgr: remove ~5M of unnecessary
Martin, Is it acceptable to send merge requests with a git URL for a server elsewhere, or must it be on gitorious? -- Chris On Fri, Feb 17, 2012 at 11:23 PM, Martin Spott martin.sp...@mgras.net wrote: Hi Chris, Chris Forbes wrote: --- src/Traffic/TrafficMgr.cxx | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) Would you consider cloning the repository and filing merge-requests on Gitorious ? That's much easier to track - and it preserves your name as the author of the fix. Cheers, Martin. -- Unix _IS_ user friendly - it's just selective about who its friends are ! -- -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] [PATCH 3/9] remove pointless previousInstruction local in FGGroundNetwork::checkSpeedAdjustment
--- src/Airports/groundnetwork.cxx |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/src/Airports/groundnetwork.cxx b/src/Airports/groundnetwork.cxx index 34ee61c..787057c 100644 --- a/src/Airports/groundnetwork.cxx +++ b/src/Airports/groundnetwork.cxx @@ -893,7 +893,6 @@ void FGGroundNetwork::checkSpeedAdjustment(int id, double lat, TrafficVectorIterator current, closest, closestOnNetwork; TrafficVectorIterator i = activeTraffic.begin(); bool otherReasonToSlowDown = false; -bool previousInstruction; if (activeTraffic.size()) { //while ((i-getId() != id) (i != activeTraffic.end())) while (i != activeTraffic.end()) { @@ -912,7 +911,6 @@ void FGGroundNetwork::checkSpeedAdjustment(int id, double lat, current = i; //closest = current; -previousInstruction = current-getSpeedAdjustment(); double mindist = HUGE_VAL; if (activeTraffic.size()) { double course, dist, bearing, az2; -- 1.7.5.4 -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] [PATCH 6/9] remove pointless useInitialWayPoint/useCurrentWayPoint locals from FGAIFlightPlan::ctor
--- src/AIModel/AIFlightPlan.cxx | 13 - 1 files changed, 0 insertions(+), 13 deletions(-) diff --git a/src/AIModel/AIFlightPlan.cxx b/src/AIModel/AIFlightPlan.cxx index 21ad6f9..b94f033 100644 --- a/src/AIModel/AIFlightPlan.cxx +++ b/src/AIModel/AIFlightPlan.cxx @@ -164,25 +164,12 @@ FGAIFlightPlan::FGAIFlightPlan(FGAIAircraft *ac, gateId=0; taxiRoute = 0; start_time = start; - bool useInitialWayPoint = true; - bool useCurrentWayPoint = false; SGPath path( globals-get_fg_root() ); path.append( /AI/FlightPlans ); path.append( p ); SGPropertyNode root; isValid = true; - // This is a bit of a hack: - // Normally the value of course will be used to evaluate whether - // or not a waypoint will be used for midair initialization of - // an AI aircraft. However, if a course value of 999 will be passed - // when an update request is received, which will by definition always be - // on the ground and should include all waypoints. - if (course == 999) -{ - useInitialWayPoint = false; - useCurrentWayPoint = true; -} if (path.exists()) { -- 1.7.5.4 -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] [PATCH 4/9] remove pointless elevation_feet local from FGGroundNetwork::render
--- src/Airports/groundnetwork.cxx |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/src/Airports/groundnetwork.cxx b/src/Airports/groundnetwork.cxx index 787057c..78e8812 100644 --- a/src/Airports/groundnetwork.cxx +++ b/src/Airports/groundnetwork.cxx @@ -1354,7 +1354,6 @@ void FGGroundNetwork::render(bool visible) group = new osg::Group; FGScenery * local_scenery = globals-get_scenery(); // double elevation_meters = 0.0; -double elevation_feet = 0.0; time_t now = time(NULL) + fgGetLong(/sim/time/warp); //for ( FGTaxiSegmentVectorIterator i = segments.begin(); i != segments.end(); i++) { //double dx = 0; @@ -1394,7 +1393,6 @@ void FGGroundNetwork::render(bool visible) SGGeod center2 = end; center2.setElevationM(SG_MAX_ELEVATION_M); if (local_scenery-get_elevation_m( center2, elevationEnd, NULL )) { -elevation_feet = elevationEnd * SG_METER_TO_FEET + 0.5; //elevation_meters += 0.5; } else { @@ -1454,7 +1452,6 @@ void FGGroundNetwork::render(bool visible) SGGeod center2 = segments[k]-getStart()-getGeod(); center2.setElevationM(SG_MAX_ELEVATION_M); if (local_scenery-get_elevation_m( center2, elevationStart, NULL )) { -elevation_feet = elevationStart * SG_METER_TO_FEET + 0.5; //elevation_meters += 0.5; } else { @@ -1466,7 +1463,6 @@ void FGGroundNetwork::render(bool visible) SGGeod center2 = segments[k]-getEnd()-getGeod(); center2.setElevationM(SG_MAX_ELEVATION_M); if (local_scenery-get_elevation_m( center2, elevationEnd, NULL )) { -elevation_feet = elevationEnd * SG_METER_TO_FEET + 0.5; //elevation_meters += 0.5; } else { -- 1.7.5.4 -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] [PATCH 2/9] remove pointless minbearing local in FGGroundNetwork::checkSpeedAdjustment
--- src/Airports/groundnetwork.cxx |5 + 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/src/Airports/groundnetwork.cxx b/src/Airports/groundnetwork.cxx index 8e9b16f..34ee61c 100644 --- a/src/Airports/groundnetwork.cxx +++ b/src/Airports/groundnetwork.cxx @@ -915,7 +915,7 @@ void FGGroundNetwork::checkSpeedAdjustment(int id, double lat, previousInstruction = current-getSpeedAdjustment(); double mindist = HUGE_VAL; if (activeTraffic.size()) { -double course, dist, bearing, minbearing, az2; +double course, dist, bearing, az2; SGGeod curr(SGGeod::fromDegM(lon, lat, alt)); //TrafficVector iterator closest; closest = current; @@ -937,8 +937,6 @@ void FGGroundNetwork::checkSpeedAdjustment(int id, double lat, mindist = dist; closest = i; closestOnNetwork = i; -minbearing = bearing; - } } //Check traffic at the tower controller @@ -961,7 +959,6 @@ void FGGroundNetwork::checkSpeedAdjustment(int id, double lat, // endl; mindist = dist; closest = i; -minbearing = bearing; otherReasonToSlowDown = true; } } -- 1.7.5.4 -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] [PATCH 9/9] simplify FGRadioTransmission::getFrequency
--- src/Radio/radio.cxx | 14 +++--- 1 files changed, 3 insertions(+), 11 deletions(-) diff --git a/src/Radio/radio.cxx b/src/Radio/radio.cxx index 169cd32..a22274a 100644 --- a/src/Radio/radio.cxx +++ b/src/Radio/radio.cxx @@ -77,19 +77,11 @@ FGRadioTransmission::~FGRadioTransmission() double FGRadioTransmission::getFrequency(int radio) { - double freq = 118.0; switch (radio) { - case 1: - freq = fgGetDouble(/instrumentation/comm[0]/frequencies/selected-mhz); - break; - case 2: - freq = fgGetDouble(/instrumentation/comm[1]/frequencies/selected-mhz); - break; - default: - freq = fgGetDouble(/instrumentation/comm[0]/frequencies/selected-mhz); - + case 1: return fgGetDouble(/instrumentation/comm[0]/frequencies/selected-mhz); + case 2: return fgGetDouble(/instrumentation/comm[1]/frequencies/selected-mhz); + default: return fgGetDouble(/instrumentation/comm[0]/frequencies/selected-mhz); } - return freq; } -- 1.7.5.4 -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] [PATCH 8/9] remove unused percent_RPM local from FGPiston::doEnginePower
--- src/FDM/JSBSim/models/propulsion/FGPiston.cpp |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/src/FDM/JSBSim/models/propulsion/FGPiston.cpp b/src/FDM/JSBSim/models/propulsion/FGPiston.cpp index 0f47018..dbd494c 100644 --- a/src/FDM/JSBSim/models/propulsion/FGPiston.cpp +++ b/src/FDM/JSBSim/models/propulsion/FGPiston.cpp @@ -733,10 +733,9 @@ void FGPiston::doEnginePower(void) FMEP = 0; if (Running) { // FIXME: this needs to be generalized -double ME, percent_RPM, power; // Convienience term for use in the calculations +double ME, power; // Convienience term for use in the calculations ME = Mixture_Efficiency_Correlation-GetValue(m_dot_fuel/m_dot_air); -percent_RPM = RPM/MaxRPM; // Guestimate engine friction losses from Figure 4.4 of Engines: An Introduction, John Lumley FMEP = (-FMEPDynamic * MeanPistonSpeed_fps * fttom - FMEPStatic); -- 1.7.5.4 -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] [PATCH 7/9] remove unused locals from Rotorpart::calculateAlpha
--- src/FDM/YASim/Rotorpart.cpp |9 ++--- 1 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/FDM/YASim/Rotorpart.cpp b/src/FDM/YASim/Rotorpart.cpp index bd54f41..b88087a 100644 --- a/src/FDM/YASim/Rotorpart.cpp +++ b/src/FDM/YASim/Rotorpart.cpp @@ -377,11 +377,8 @@ float Rotorpart::calculateAlpha(float* v_rel_air, float rho, float incidence, float cyc, float alphaalt, float *torque, float *returnlift) { -float moment[3],v_local[3],v_local_scalar,lift_moment,v_flap[3],v_help[3]; -float ias;//nur f. dgb -int i,n; -for (i=0;i3;i++) -moment[i]=0; +float v_local[3],v_local_scalar,lift_moment,v_flap[3],v_help[3]; +int n; float relgrav = Math::dot3(_normal,_rotor-getGravDirection()); lift_moment=-_mass*_len*9.81*relgrav; *torque=0;// @@ -427,7 +424,6 @@ float Rotorpart::calculateAlpha(float* v_rel_air, float rho, Math::mul3(1/v_local_scalar,v_local,v_help); float incidence_of_airspeed = Math::asin(Math::clamp( Math::dot3(v_help,_normal),-1,1)) + local_incidence; -ias = incidence_of_airspeed; //reduce the ias (Prantl factor) float prantl_factor=2/pi*Math::acos(Math::exp( @@ -437,7 +433,6 @@ float Rotorpart::calculateAlpha(float* v_rel_air, float rho, incidence_of_airspeed = (incidence_of_airspeed+ _rotor-getAirfoilIncidenceNoLift())*prantl_factor *_rotor_correction_factor-_rotor-getAirfoilIncidenceNoLift(); -ias = incidence_of_airspeed; float lift_wo_cyc = _rotor-getLiftCoef(incidence_of_airspeed -cyc*_rotor_correction_factor*prantl_factor,v_local_scalar) * v_local_scalar * v_local_scalar * A *rho *0.5; -- 1.7.5.4 -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] [PATCH 1/9] remove pointless remainingTimeEnroute local in FGAISchedule::update()
--- src/Traffic/Schedule.cxx |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/src/Traffic/Schedule.cxx b/src/Traffic/Schedule.cxx index 789631b..05e4eda 100644 --- a/src/Traffic/Schedule.cxx +++ b/src/Traffic/Schedule.cxx @@ -196,7 +196,6 @@ bool FGAISchedule::update(time_t now, const SGVec3d userCart) time_t totalTimeEnroute, elapsedTimeEnroute, -remainingTimeEnroute, deptime = 0; if (!valid) { return false; @@ -259,7 +258,6 @@ bool FGAISchedule::update(time_t now, const SGVec3d userCart) totalTimeEnroute = flight-getArrivalTime() - flight-getDepartureTime(); if (flight-getDepartureTime() now) { elapsedTimeEnroute = now - flight-getDepartureTime(); - remainingTimeEnroute = totalTimeEnroute - elapsedTimeEnroute; double x = elapsedTimeEnroute / (double) totalTimeEnroute; // current pos is based on great-circle course between departure/arrival, @@ -275,7 +273,6 @@ bool FGAISchedule::update(time_t now, const SGVec3d userCart) speed = ((distanceM - coveredDistance) * SG_METER_TO_NM) / 3600.0; } else { // not departed yet - remainingTimeEnroute = totalTimeEnroute; elapsedTimeEnroute = 0; position = dep-geod(); SG_LOG (SG_GENERAL, SG_BULK, Traffic Manager: Flight is pending, departure in @@ -283,7 +280,6 @@ bool FGAISchedule::update(time_t now, const SGVec3d userCart) } } else { // departure / arrival coincident -remainingTimeEnroute = totalTimeEnroute = 0.0; elapsedTimeEnroute = 0; position = dep-geod(); } -- 1.7.5.4 -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Cleanup unused locals
These patches clean up some set-but-unused locals which cause warnings on current GCC. There should be no change in semantics. Tested against c5eba72c758b92b9120c38ae101f4a4ab2044ff8 ('next' at time of writing) -- Chris -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] [PATCH 5/9] remove pointless elevation_feet local from FGStartupController::render
--- src/ATC/trafficcontrol.cxx |5 - 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/src/ATC/trafficcontrol.cxx b/src/ATC/trafficcontrol.cxx index 8e29f04..eb8ca7e 100644 --- a/src/ATC/trafficcontrol.cxx +++ b/src/ATC/trafficcontrol.cxx @@ -1328,8 +1328,6 @@ void FGStartupController::render(bool visible) group = new osg::Group; FGScenery * local_scenery = globals-get_scenery(); //double elevation_meters = 0.0; -double elevation_feet = 0.0; - //for ( FGTaxiSegmentVectorIterator i = segments.begin(); i != segments.end(); i++) { double dx = 0; @@ -1370,7 +1368,6 @@ void FGStartupController::render(bool visible) SGGeod center2 = end; center2.setElevationM(SG_MAX_ELEVATION_M); if (local_scenery-get_elevation_m( center2, elevationEnd, NULL )) { -elevation_feet = elevationEnd * SG_METER_TO_FEET + 0.5; //elevation_meters += 0.5; } else { @@ -1433,7 +1430,6 @@ void FGStartupController::render(bool visible) SGGeod center2 = segment-getStart()-getGeod(); center2.setElevationM(SG_MAX_ELEVATION_M); if (local_scenery-get_elevation_m( center2, elevationStart, NULL )) { -elevation_feet = elevationStart * SG_METER_TO_FEET + 0.5; //elevation_meters += 0.5; } else { @@ -1445,7 +1441,6 @@ void FGStartupController::render(bool visible) SGGeod center2 = segment-getEnd()-getGeod(); center2.setElevationM(SG_MAX_ELEVATION_M); if (local_scenery-get_elevation_m( center2, elevationEnd, NULL )) { -elevation_feet = elevationEnd * SG_METER_TO_FEET + 0.5; //elevation_meters += 0.5; } else { -- 1.7.5.4 -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel