以编程方式访问图形卡时钟 [英] Access graphic card clock programmatically

查看:74
本文介绍了以编程方式访问图形卡时钟的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用Windows应用程序中的图形卡时钟?更具体地说-是否可以使图形卡以某种方式发送时钟事件的中断(滴答声?)并从Windows钩子连接到它.软件?

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?

我要说的是PC时钟没有问题.精密时钟要花很多钱,而且在配色方面很难(GPS信号不可用,原子钟要花一臂之力,甚至更多).我读到新的图形卡上有精密时钟.因此,我立即想到了-我可以使用它们来将我的应用程序同步到100ns或以下的精度吗?有什么想法吗?

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.还是音频卡就可以了... P.P.S.请回答问题-我可以连接图形/声卡内部时钟,而不是Windows vs Linux讨论.谢谢

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

推荐答案

不,您不能使用它们来同步我的应用程序,精度可能低至100ns..中断处理抖动可能大于100ns.您需要使用优先级最高的中断,并且永远不要让中断被禁用.

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.

那您想在.NET中使用它吗?非确定性垃圾回收和精确计时只是不兼容.选择一个更适合您需求的平台.

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.

这篇关于以编程方式访问图形卡时钟的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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