Re: Slow Down Time
Sterling Somers <[email protected]> Tue, 31 Jul 2012 15:31:15 -0400
| Newsgroups | gmane.games.flightgear.general |
|---|---|
| Message-ID | <[email protected]> |
I have tried both the speed-up (doesn't work) and the frame-rate way. The frame rate way MIGHT work but how much time is simtime in realtime? Here's a quick bit on my project: I am trying to simulate pilots. The psychology simulation (ACT-R) software I use uses a "50 millisecond" time cycle (it does not run in real time). I would like to unpause/pause flightgear for every ACT-R cycle, having flightgear run for 50 real time milliseconds worth of time, before ACT-R runs it cycle. By slowing flightgear down, I was hoping to run it for some amount of time (say, 1 second real time), such that flightgear runs for 50 milliseconds of flightgear-simulated time. This is to get the simulator and ACT-R as close as possible to be synchronized. Thanks, Sterling From: [email protected] To: [email protected] Date: Mon, 30 Jul 2012 15:25:06 -0400 Subject: Re: [Flightgear-users] Slow Down Time I know it's been a long time since your reply but I've just gotten back on the project and gave your reply a read. I did a quick test and it looks like this solution should do what I want... I'll try it out. Thanks muchly, Sterling Date: Fri, 17 Feb 2012 08:34:55 +0100 From: [email protected] To: [email protected] Subject: Re: [Flightgear-users] Slow Down Time On Thu, 16 Feb 2012, Sterling Somers wrote: > Does anyone know of a way to slow down time to less-than-real time? I > know warp will allow you to speed-up time, but it seems it canÿÿt be > fractional. IS there another way to do that perhaps? There is no obvious reason for why that should not be possible (though some subsystems may inappropriately use real time instead of simulation time). Have you tried setting the property /sim/speed-up to a fractional value directly? (It appears to be a double in the property tree - but I don't know if that is actually the property used to set the simulation rate.) Another (hackish) way that should work is to set /sim/frame-rate-throttle-hz to a frame rate your system achives (say 50) and /sim/max-simtime-per-frame to less than 1/50, say 0.01 to force a simulation rate of 0.5 or less (depending on your frame rate). Properties can be set from the command line with --prop:/sim/frame-rate-throttle-hz=50 --prop:/sim/max-simtime-per-frame=0.01 or in FG via the property browser (I think these properties can be changed at runtime - but that is not the case for all properties). Cheers, Anders -- --------------------------------------------------------------------------- Anders Gidenstam WWW: http://gitorious.org/anders-hangar http://www.gidenstam.org/FlightGear/ ------------------------------------------------------------------------------ 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-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/flightgear-users ------------------------------------------------------------------------------ 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-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/flightgear-users ------------------------------------------------------------------------------ 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-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/flightgear-users