以编程方式访问显卡时钟
是否可以从 Windows 应用程序使用图形卡时钟?更具体地说 - 是否可以以某种方式使图形卡在时钟事件(滴答声?)上发送中断并从软件挂钩?
我想说的是 PC 时钟不好。精密时钟要花很多钱,而且在协调方面也很困难(没有 GPS 信号,原子钟要花一大笔钱)。我读到新的显卡上有精密时钟。所以我立即想到 - 我可以使用它们来同步我的应用程序,精度可能低至 100 纳秒(我自己心里记着)?有什么想法吗?
PS 或声卡的问题...... PPS 请回答问题 - 我可以连接到图形/音频卡内部时钟吗,而不是 Windows 与 Linux 的讨论。谢谢
Is it possible to use graphic card clock from a windows application? More specifically - is it possible to somehow make graphic card to send interrupts on clock events (tick?) and hook to it from a software?
What I am trying to say is that PC clocks arent good. precision clocks cost a lot of money plus they are difficult when it comes to colo (GPS signal is not available and atomic clocks cost an arm and a leg and more). I read that new graphic cards have precision clocks on them. So my immediate thought - can I use them to sync my app with precision down to 100ns perhaps (mental note to myself)? any ideas?
P.S. Or audio card on that matter...
P.P.S. PLEASE answer the question - can I hook up to a graphic/audio card internal clock, not the windows vs linux discussion. thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不,您不能“使用它们来同步我的应用程序,精度可能低至 100 纳秒”。中断处理抖动可大于100ns。您需要使用最高优先级的中断,并且永远不要禁用中断。
那么您想在 .NET 中使用它吗?不确定性垃圾收集和精确计时是不兼容的。选择一个更适合您要求的平台。
No, you cannot "use them to sync my app with precision down to 100ns perhaps". Interrupt processing jitter can be greater than 100ns. You'd need to use the very highest-priority interrupt and never let interrupts be disabled.
Then you want this in .NET? Non-deterministic garbage collection and precision timing just aren't compatible. Pick a platform more suited to your requirements.