基于c代码的ppt查看器项目. [英] ppt viewer project based on c code.

查看:65
本文介绍了基于c代码的ppt查看器项目.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


在演示过程中,我的项目遇到了一些问题,即当我从当前幻灯片转到下一张幻灯片时,将花费大量时间,即大约15到20秒.我不知道确切的问题,但我正在使用IPC消息队列方法来传输幻灯片信息.我的代码是用c编写的,并且正在使用pango,cairo和directFB库.如果您对导航和当前问题有任何解决方案,请帮助我.

谢谢
索纳里·拉杰普特

[edit]删除了乱码块,将我的内容作为纯文本..."选项已禁用-OriginalGriff [/edit]

Hi,
I am facing some problem in my project during presentation i.e when i will go from current slide to next slide it will taking lots of time i.e. around 15 to 20 secs. I don''t know the exact problem but i am using IPC message queue method to transfer slide information. My code is written in c and I am using pango, cairo and directFB libraries. If you have any solution regarding navigation and the current problem then please help me out.

Thanks
Sonali Rajput

[edit]Spurious blocks removed, "Treat my content as plain text..." option disabled - OriginalGriff[/edit]

推荐答案

我们无法帮助您基于这些信息-如果没有非常仔细地阅读您的整个代码,我们就不可能做到具体,这可能远远超出了快速提问的范围.

但是,您可以执行一些常规操作.

首先要做的是量化问题:测量所需的时间.然后,您将有一条基线可以工作.
然后,查看问题何时发生.使用特定的输入文件会更糟吗?如果是这样,有什么特别之处?
然后,开始分解它.为应用程序的各个部分计时(在C#中,我将使用秒表控件,在C中,您将需要寻找自己以找到可用的组件,我不记得了)-您需要获取有关哪些部分是可用的信息慢慢地当您知道大部分时间都花在了什么地方时,您可以专注于安排部分时间,并找出需要集中精力以加快速度的地方.

抱歉,这很笼统,但是对于我们从未见过的代码中的时序问题,我们无法为您提供具体建议! :laugh:
We can''t help you based on that information - and it''s unlikely that we can be specific without a very close perusal of your entire code, which is probably well beyond the scope of a quick question anyway.

However, there are some general things that you can do.

The first thing to do is to quantify the problem: Measure the time taken. You will then have a base line to work from.
Then, look at when the problem occurs. Is it worse with a particular input file? If so, what is special about it?
Then, start breaking it down. Time individual parts of your app (In C# I would use a Stopwatch control, in C you will need to look for yourself to find out what you have available, I can''t remember) - you need to get information on which parts are going slowly. When you know where the bulk of the time is being spent, you can focus on timing the parts of that, and working out where you need to focus your attention to speed things up.

Sorry if this is general, but we can''t give you specific advice with a timing problem in code we have never seen! :laugh:


这篇关于基于c代码的ppt查看器项目.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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