C ++中飞行模拟的生产者消费者模型 [英] producer consumer model for flight simulation in C++

查看:97
本文介绍了C ++中飞行模拟的生产者消费者模型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好b $ b

我正在用C ++开发一个实时飞行模拟应用程序。我的要求如下。我有飞行数学模型,必须在12.5毫秒执行。我必须取出输出并在不同的时间发送到各种子系统,比如20毫秒,40毫秒等。这样做的最佳方法是什么。目前我正在多媒体计时器中运行飞行模型。请以专业的方式提出建议。



提前致谢



Vijeesh

Hi
I'm developing a real time flight simulation application in C++. My requirement is as follows. I have flight mathematical model which has to be executed at 12.5 msec. I have to take out the output and send to various subsystems at different timings, say 20msec,40msec etc.. What is the best approach to do this. Currently I'm running flight model in a multimedia timer. Please give suggestion to do this in a professional way.

Thanks in Advance

Vijeesh

推荐答案

对于Windows QPC-API 是系统所能提供的最佳选择。



我的建议是拥有一个管理所有时间戳和动作的中央计时实例延迟,所以任何延迟都没有总结。
For Windows theQPC-API is best what the system can provide.

My advise is to have a central timing instance which manages all timestamps and action delays, so any delays arent summed up.


这篇关于C ++中飞行模拟的生产者消费者模型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆