ijk123's Blog

Happy coding

反复创建osgViewer,消息响应延迟的问题

ijk123 posted @ 2014年6月24日 14:57 in 未分类 , 1360 阅读
之前出现过在ActiveX控件里,反复刷新IE的情况下,有的osg控件可以正常的工作,而有的则会出现再次刷新后,控件不再响应鼠标和键盘事件的问题。
因为把IE关掉再重新打开的话,这个问题就没有了,所以一直以为是IE的问题,一直没有管。
 
这两天在写一个程序原型的时候,需要在Qt的程序里,反复的创建并切换Viewer,这时问题又出现了:
第一个创建出来的Viewer工作正常,当销毁这个再创建出另一个后,就出现鼠标和键盘事件响应延迟的问题,延迟的时间很长,大概5秒以上。
 
翻出来之前网上下的osg例子程序,也改成多次创建viewer,结果跑起来却没有问题!
怪了,肯定是自己哪里删代码的时候改坏了,于是经过一个下午的代码对比后,发现了问题所在。
 
osgViewer::ViewBase::realize()
 
对,就是这个函数,对比后发现我的代码里没有这个函数的调用,加上后,一切正常了。
 
不过值得注意的是,我把例子里的realize()删掉后,它仍然能正常工作。我去翻了下这个函数的代码,发现确实是做了很多工作,不过在frame()函数里是有检查isRealized()的,如果没有实例化过的话,frame()函数是会调用realize()进行一次实例化的。
 
由于我自己的代码暂时没有debug的库,编一个出来估计要差不多一个小时,所以暂时偷个懒在这里记录一下,以后有时间的话还是要再过一次osg的框架代码的。

 

Avatar_small
AP SSC Gk Model Pape 说:
2022年9月10日 07:40

General Knowlorge is most important subject to all Class 10 students studying in English Medium, AP SSC Gk ModelPaper Telugu Medium & Urdu Medium of the State Board. So every student who is studying in the state Government & Private Schools can download the AP 10th GK Model Paper 2023 Pdf with answer solutions designed and suggested by subject experts. General Knowlorge is most important subject to all Class 10 students studying in English Medium.

Avatar_small
Alyssa 说:
2023年1月07日 01:23

osgViewer::ViewBase::realize() is a function in the OpenSceneGraph (OSG) library that is used to initialize a view object. It is called to create the graphics context for the view, which is needed for Lab grown diamonds rendering the scene. The osgViewer library provides classes for viewing 3D scenes in a window or off-screen buffer. osgViewer::ViewBase is the base class for all viewer classes in osgViewer. It provides a common interface for managing the graphics context and rendering the scene

Avatar_small
seo service UK 说:
2023年12月24日 04:35

Yes, the biggest online stalls and bookies in Indonesia offer you online slot game games that have the highest RTP slots. Play microgaming online slot games on our site

Avatar_small
닷컴 도메인 说:
2023年12月30日 18:52

Hello, Your blog is enlightening. It is decent to peruse such fantastic substance. Appealing data on your blog, thank you for taking the time and offer with us. Myassignmenthelp conveys amazing substance identified with programming task help.

Avatar_small
안전카지노추천 说:
2023年12月30日 19:17

Hello what a dazzling post I have gone over and trust me I have been paying extraordinary personality to this comparative sort of post for late week and hardly continued running over this. Much thanks and will search for more postings from you.

Avatar_small
파워볼사다리사이트 说:
2023年12月30日 19:26

Much obliged to you again for all the learning you disperse, Good post. I was extremely intrigued by the article, it's very rousing I ought to concede. I like visiting your site since I generally go over intriguing articles this way one.

Avatar_small
로얄클럽도메인 说:
2023年12月30日 19:42

Astonishingly made article, if just all bloggers offered a tantamount degree of substance as you, the web would be a phenomenally improved spot. Very personality blowing post, Thank you for sharing this information.

Avatar_small
먹튀검증사이트 说:
2023年12月30日 19:56

Incredible post. An obligation of appreciation is with the goal for offering to us. I just appreciated your technique for presentation. I acknowledged getting this .Thanks for sharing and keep forming. It is extraordinary to scrutinize sites this way. As usual, we invite yourself certification and recognize as legitimate inside us.

Avatar_small
안전놀이터검증 说:
2023年12月30日 20:00

That is genuinely something that we think about a ton. Right when we concocted our key game-plan, the central fragment was individuals. Hopkins is mind blowing in light of the general open who work here and learn here, so it's basic to use to keep them satisfied and secured.

Avatar_small
먹튀폴리스주소 说:
2023年12月30日 20:16

Incredible post. An obligation of appreciation is with the goal for offering to us. I just appreciated your technique for presentation. I acknowledged getting this .Thanks for sharing and keep forming. It is extraordinary to scrutinize sites this way. As usual, we invite yourself certification and recognize as legitimate inside us.

Avatar_small
사설토토사이트 说:
2023年12月30日 20:34

A debt of gratitude is in order for all the exertion in sharing this splendid post and I truly to welcome it. Your commitment and diligent work has helped you to deliver great quality articles this way Cool stuff you have and you keep upgrade all of us

Avatar_small
안전토토사이트 说:
2023年12月30日 20:35

"I’m happy I located this blog! From time to time, students want to cognitive the keys of productive literary essays composing. Your first-class knowledge about this good post can become a proper basis for such people.I regularly visit this site to check out the events and functions and sometimes for resources. However, it has been a while that you have shared some news about latest or upcoming events.
"

Avatar_small
토스타 说:
2023年12月30日 20:50

Easily, the article is actually the best topic on this registry related issue. I fit in with your conclusions and will eagerly look forward to your next updates. Just saying thanks will not just be sufficient, for the fantasti c lucidity in your writing. I will instantly grab your rss feed to stay informed of any updates

Avatar_small
카지노사이트 说:
2023年12月30日 21:18

I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well. In fact your creative writing abilities has inspired me to start my own BlogEngine blog now. Really the blogging is spreading its wings rapidly. Your write up is a fine example of it.

Avatar_small
먹튀검증사이트 说:
2023年12月30日 21:38

his is my first time i visit here. I found so many entertaining stuff in your blog, especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the leisure here! Keep up the excellent work.

Avatar_small
먹튀사이트주소 说:
2023年12月30日 22:00

Hi I found your site by mistake when i was searching yahoo for this acne issue, I must say your site is really helpful I also love the design, its amazing!. I don’t have the time at the moment to fully read your site but I have bookmarked it and also add your RSS feeds. I will be back in a day or two. thanks for a great site.

Avatar_small
메이저토토 说:
2023年12月30日 22:10

Easily, the article is actually the best topic on this registry related issue. I fit in with your conclusions and will eagerly look forward to your next updates. Just saying thanks will not just be sufficient, for the fantasti c lucidity in your writing. I will instantly grab your rss feed to stay informed of any updates.

Avatar_small
메이저토토주소 说:
2023年12月30日 22:50

 would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well. In fact your creative writing abilities has inspired me to start my own BlogEngine blog now. Really the blogging is spreading its wings rapidly. Your write up is a fine example of it.

Avatar_small
배트맨토토사이트 说:
2023年12月30日 23:01

"Great site! I really love the amazing way it is simple on my eyes it is. I am considering how I may be told at whatever point another post has been made. I have bought in to your RSS which may work? Have an incredible dayI think this is an enlightening post and it is exceptionally helpful and educated. in this manner. I might want to thank you for the endeavors you have made recorded as a hard copy this article.
"

Avatar_small
인터넷바카라 说:
2023年12月30日 23:18

"Took me time to read all the comments, but I really enjoyed the article. It proved to be Very helpful to me and I am sure to all the commenters here! It’s always nice when you can not only be informed, but also entertained! Your weblog provided us with precious records to paintings with. each & every suggestions of your publish are amazing.
"

Avatar_small
아인카지노이벤트 说:
2023年12月30日 23:33

"Great post full of useful tips! My site is fairly new and I am also having a hard time getting my readers to leave comments. Analytics shows they are coming to the site but I have a feeling “nobody wants to be first”.Extraordinary article as usual. I don't typically remark , anyway I have been devouring your information for at some point now and this article came at a perfect time.
"

Avatar_small
토토사이트배너 说:
2023年12月30日 23:41

I am always searching online for articles that can help me. There is obviously a lot to know about this. I think you made some good points in Features also. Keep working, great job! My friend mentioned to me your blog, so I thought I’d read it for myself.

Avatar_small
แทงบอลออนไลน์ 说:
2023年12月31日 00:07

I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well. In fact your creative writing abilities has inspired me to start my own BlogEngine blog now. Really the blogging is spreading its wings rapidly. Your write up is a fine example of it.

Avatar_small
eos파워볼 说:
2023年12月31日 00:49

Hello what a dazzling post I have gone over and trust me I have been paying extraordinary personality to this comparative sort of post for late week and hardly continued running over this. Much thanks and will search for more postings from you.

Avatar_small
토토사이트 说:
2023年12月31日 01:02

Hello, Your blog is enlightening. It is decent to peruse such fantastic substance. Appealing data on your blog, thank you for taking the time and offer with us. Myassignmenthelp conveys amazing substance identified with programming task help.

Avatar_small
해외안전놀이터 说:
2023年12月31日 01:31

Hi what an awe inspiring post I have gone over and trust me I have been paying special mind to this similar kind of post for late week and scarcely kept running over this. Much thanks and will look for more postings from you.

Avatar_small
샌즈카지노 먹튀 说:
2023年12月31日 01:43

Much obliged to you again for all the learning you disperse, Good post. I was extremely intrigued by the article, it's very rousing I ought to concede. I like visiting your site since I generally go over intriguing articles this way one.

Avatar_small
토토존 먹튀신고 说:
2023年12月31日 02:14

Astonishingly made article, if just all bloggers offered a tantamount degree of substance as you, the web would be a phenomenally improved spot. Very personality blowing post, Thank you for sharing this information.

Avatar_small
승인전화없는토토사이트 说:
2023年12月31日 02:35

Incredible post. An obligation of appreciation is with the goal for offering to us. I just appreciated your technique for presentation. I acknowledged getting this .Thanks for sharing and keep forming. It is extraordinary to scrutinize sites this way. As usual, we invite yourself certification and recognize as legitimate inside us.

Avatar_small
사설토토 说:
2023年12月31日 02:44

That is genuinely something that we think about a ton. Right when we concocted our key game-plan, the central fragment was individuals. Hopkins is mind blowing in light of the general open who work here and learn here, so it's basic to use to keep them satisfied and secured.

Avatar_small
토토사이트 说:
2023年12月31日 03:09

"A devotion of gratefulness is all together for all the exertion in sharing this amazing post and I truly to welcome it. Your obligation and dependable work has helped you to pass on amazing quality articles as such Stunning learning and I like to impart this sort of data to my companions and expectation they like it they why I do.
"

Avatar_small
샌즈카지노 说:
2023年12月31日 03:22

A debt of gratitude is in order for all the exertion in sharing this splendid post and I truly to welcome it. Your commitment and diligent work has helped you to deliver great quality articles this way Cool stuff you have and you keep upgrade all of us

Avatar_small
먹튀폴리스주소 说:
2023年12月31日 03:58

Easily, the article is actually the best topic on this registry related issue. I fit in with your conclusions and will eagerly look forward to your next updates. Just saying thanks will not just be sufficient, for the fantasti c lucidity in your writing. I will instantly grab your rss feed to stay informed of any updates

Avatar_small
토토 배너 홍보 说:
2023年12月31日 04:15

I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well. In fact your creative writing abilities has inspired me to start my own BlogEngine blog now. Really the blogging is spreading its wings rapidly. Your write up is a fine example of it.

Avatar_small
메이저토토 说:
2023年12月31日 04:18

Hi I found your site by mistake when i was searching yahoo for this acne issue, I must say your site is really helpful I also love the design, its amazing!. I don’t have the time at the moment to fully read your site but I have bookmarked it and also add your RSS feeds. I will be back in a day or two. thanks for a great site.

Avatar_small
먹튀검증업체 说:
2023年12月31日 04:20

his is my first time i visit here. I found so many entertaining stuff in your blog, especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the leisure here! Keep up the excellent work.

Avatar_small
먹튀검증업체 说:
2023年12月31日 04:24

Took me time to read all the comments, but I really enjoyed the article. It proved to be Very helpful to me and I am sure to all the commenters here! It’s always nice when you can not only be informed, but also entertained!You have raised an important issue..Thanks for sharing..I would like to read more current affairs from this blog..keep posting..

Avatar_small
오래된토토사이트주소 说:
2023年12月31日 04:40

Hi I found your site by mistake when i was searching yahoo for this acne issue, I must say your site is really helpful I also love the design, its amazing!. I don’t have the time at the moment to fully read your site but I have bookmarked it and also add your RSS feeds. I will be back in a day or two. thanks for a great site.

Avatar_small
메이저토토추천 说:
2023年12月31日 04:47

I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well. In fact your creative writing abilities has inspired me to start my own BlogEngine blog now. Really the blogging is spreading its wings rapidly. Your write up is a fine example of it.

Avatar_small
seo service london 说:
2024年1月13日 03:38

It was thinking about whether I could utilize this review on my other site, I will connect it back to your site though.Great Thanks

Avatar_small
먹튀검증 说:
2024年1月19日 19:59

Your article got me thinking about something. Who do we contact if we want anesthesia quickly? I have heard there are some mobile services online, and now I know which of these services is best at their job. I am glad my friends told me about them.

Avatar_small
카지노사이트 说:
2024年1月19日 20:45

Thanks for taking the time to share with us such a great article. I found such a significant number of fascinating stuff with regards to your blog particularly its discussio

Avatar_small
카지노 说:
2024年1月19日 21:15

I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you post. 

Avatar_small
슬롯커뮤니티 说:
2024年1月19日 22:02

As i followed on your web log even while aligning really just a little submits. Attractive technique for then, We are book-marking at one time seize ones own whole goes up.

Avatar_small
카지노사이트 说:
2024年1月19日 22:19

This is the reason it really is greater you could important examination before creating. It will be possible to create better write-up like this.

Avatar_small
머니맨 说:
2024年1月19日 22:54

What a fantabulous post this has been. Never seen this kind of useful post. I am grateful to you and expect more number of posts like these. Thank you very much.

Avatar_small
바카라 사이트 说:
2024年1月19日 23:29

Wow, this is really interesting reading. I am glad I found this and got to read it. Great job on this content. I like it

Avatar_small
온라인카지노 说:
2024年1月20日 00:21

Thanks for your post. I’ve been thinking about writing a very comparable post over the last couple of weeks. I’ll probably keep it short and sweet and link to this instead if thats cool. Thank

Avatar_small
먹튀검증 说:
2024年1月20日 01:04

I like your post and also like your website because your website is very fast and everything in this website is good. Keep writing such informative posts. I have bookmark your website. Thanks for sharing

Avatar_small
슬롯사이트 说:
2024年1月20日 01:41

I recently found many useful information in your website especially this blog page. Among the lots of comments on your articles. Thanks for sharing

Avatar_small
industrial outdoor s 说:
2024年1月20日 02:20

Nice sharing amazing one keep sharing more thanks for all lovely one

Avatar_small
카지노사이트 说:
2024年1月20日 18:37

I think this is one of the most significant information for me. And i’m glad reading your article. But should remark on some general things, The web site style is perfect, the articles is really great : D. Good job, cheers

Avatar_small
소액결제현금화 说:
2024年1月20日 19:07

This is actually the kind of information I have been trying to find. Thank you for writing this information.

Avatar_small
스포츠무료중계 说:
2024年1月20日 20:55

I definitely enjoying every little bit of this blog. It is a great website and nice share. I want to thank you. Good job! You guys do a great blog, and have some great contents. Keep up the good work

Avatar_small
카지노커뮤니티 说:
2024年1月20日 21:41

"Very nice post. I just stumbled upon your blog and wanted to say that I’ve really enjoyed browsing your
blog posts."

Avatar_small
카지노사이트 说:
2024年1月25日 17:37

카지노사이트 바카라사이트 우리카지노 카지노는 바카라, 블랙잭, 룰렛 및 슬롯 등 다양한 게임을 즐기실 수 있는 공간입니다. 게임에서 승리하면 큰 환호와 함께 많은 당첨금을 받을 수 있고, 패배하면 아쉬움과 실망을 느끼게 됩니다.

Avatar_small
하노이 유흥 说:
2024年1月25日 17:42

하노이 꼭 가봐야 할 베스트 업소 추천 안내 및 예약, 하노이 밤문화 에 대해서 정리해 드립니다. 하노이 가라오케, 하노이 마사지, 하노이 풍선바, 하노이 밤문화를 제대로 즐기시기 바랍니다. 하노이 밤문화 베스트 업소 요약 베스트 업소 추천 및 정리.

Avatar_small
하노이 유흥 说:
2024年1月25日 17:43

하노이 꼭 가봐야 할 베스트 업소 추천 안내 및 예약, 하노이 밤문화 에 대해서 정리해 드립니다. 하노이 가라오케, 하노이 마사지, 하노이 풍선바, 하노이 밤문화를 제대로 즐기시기 바랍니다. 하노이 밤문화 베스트 업소 요약 베스트 업소 추천 및 정리.

Avatar_small
먹튀사이트 说:
2024年1月28日 16:43

No.1 먹튀검증 사이트, 먹튀사이트, 검증사이트, 토토사이트, 안전사이트, 메이저사이트, 안전놀이터 정보를 제공하고 있습니다. 먹튀해방으로 여러분들의 자산을 지켜 드리겠습니다. 먹튀검증 전문 커뮤니티 먹튀클린만 믿으세요!!

Avatar_small
베트남 유흥 说:
2024年1月28日 16:48

베트남 남성전용 커뮤니티❣️ 베트남 하이에나 에서 베트남 밤문화를 추천하여 드립니다. 베트남 가라오케, 베트남 VIP마사지, 베트남 이발관, 베트남 황제투어 남자라면 꼭 한번은 경험 해 봐야할 화끈한 밤문화로 모시겠습니다.

Avatar_small
1인샵 说:
2024年1月28日 19:09

This article was written by a real thinking writer.I agree many of the with the solid points made by the writer.

Avatar_small
무료스포츠중계 说:
2024年1月28日 19:20

I found your this post while searching for information about blog-related research ... It's a good post .. keep posting and updating information.

Avatar_small
먹튀검증 说:
2024年1月28日 19:33

That is really nice to hear. thank you for the update and good luck.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter