« 「スゴ録」無償交換 | Main | ソフトウェアRAIDのパフォーマンス »

2004.01.14

.NET CF / Windows CEのパフォーマンス

「プログラマー」と言っているので、たまにはその話をしよう。
うちは .NET 系の仕事がほとんどだが、Pocket PC.NET Compact Framework という仕事が1件ある。Pocket PC / Windows CE の開発は、Visual Studio .NET 2003 と .NET Compact Framework がリリースされて大きく改善された。足りない部分もたくさんあるが、Windows 版と同じ Visual Studio .NET で、同じ言語で開発ができるメリットは大きい。Compact Framework 用に書いても少しコードを入れ替えるだけで PC で動作するので、ロジックの確認などは Pocket PC を使わなくてもできる。以前と比べて、開発効率は格段に上がった。
ただしパフォーマンスの問題は頭に入れておかなければならない。このソフトは座標計算とグラフィックスを多用するのだが、PC 上で動作を確認してから Pocket PC へコピーして実行したら、PC では 0.1~0.2秒で終わる画面描画に 50 秒ほどかかってしまった。ハングしたか、と思ってデバッガで見たら、ちゃんと走っているのだ。
多くの Pocket PC が利用する Intel ARM 系には浮動小数点プロセッサがない。割算命令もない。20 年ほど前の PC だと思えばいいだろうか。
早めに気が付いたので、浮動少数演算を固定少数演算に切り替え、設計を変えて割算を減らしたが、それでも10~20秒程度かかる。CPU は 400MHz で動作していると言っているが、400MHz の PC の CPU に比べ、メモリアクセスが遅く、またビデオも遅い。
最後には描画量そのものを減らし、スレッドを作って裏で描画をかけて体感速度を上げるなどの技巧を入れ、2~3秒まで持っていった。PC 用に作るよりもコードがずいぶん増えたが、こんな携帯デバイスでありながら、スレッドの API まで含めてきちんとそろっているあたりが Windows CE / .NET Compact Framework の利点ではある。
大変ではあったが、20 年ほど前の PC-9801F という 8MHz で動作する PC で CAD を作っていたころを思い出して、なんだか楽しくもあった。

|

« 「スゴ録」無償交換 | Main | ソフトウェアRAIDのパフォーマンス »

Comments

If you want to buy real estate, you will have to get the mortgage loans. Moreover, my brother usually uses a auto loan, which seems to be the most firm.

Posted by: GINAWaller28 | 2012.07.16 at 10:17 PM

寸法: 11"Ly7"高さ x半ダース"w.もちろんスペアから注意みんな可能は同様に付属。

Posted by: バッグ?ハンドバッグ | 2013.10.16 at 10:36 PM

Very nice article, exactly what I wanted to find.

Posted by: Real Estate News | 2013.10.19 at 11:37 AM

ことができますタグもが以来、完璧それは非常に格安のみ 230 ドルの。一般的に設計卸売は通常ない、驚くべき記事。

Posted by: バッグ | 2013.10.25 at 04:30 PM

Hi, yes this piece of writing is actually fastidious and I have learned lot of things from it concerning blogging. thanks.

Posted by: One Direction phone numbers 2014 | 2014.06.27 at 09:24 AM

Great website you have here but I was curious if you knew of any message boards that cover the same topics talked about in this article? I'd really like to be a part of community where I can get feedback from other experienced people that share the same interest. If you have any recommendations, please let me know. Kudos!

Posted by: site de plan cul | 2014.06.28 at 01:32 AM

Oh my goodness! Impresdive article dude! Thank you, However I am going through problems with your RSS. I don't understgand the reason why I cannot subscribe to it. Is there anybody else having similar RSS issues? Anyone that kows the answer can you kindly respond? Thanx!!

Posted by: learn more about online surveys | 2014.07.23 at 10:45 PM

I have read so many content abiut the blogger lovers but this post is actually a fastidious post, keep it up.

Posted by: internet marketing products | 2014.07.29 at 01:42 AM

What's up, for all time i used to check webpage posts here early in the break of day, as i like to gain knowledge of more and more.

Posted by: business opportunities | 2014.07.31 at 01:47 AM

Good day! I know this is kinda off topic nevertheless I'd figured I'd ask. Woud you bee interested in exchanging links or maybe guest writing a blog post or vice-versa? My blog discusses a lot of the same topics as yours and Ifeel we could greatly benefit from each other. If you might be interested feel free to shoot me an e-mail. I look forward to hearing from you! Fantastic blog by the way!

Posted by: necklaces | 2014.08.06 at 10:10 PM

There's certainly a lot to find out about this subject. I love all the points you made.

Posted by: plan cul lannion | 2014.08.11 at 10:34 AM

hello there and thank you for your information - I've certainly picked up something new from right here. I did however expertise some technical issues using this site, as I experienced to reload the website a lot of times previous to I could get it to load correctly. I had been wondering if your web host is OK? Not that I'm complaining, but sluggish loading instances times will sometimes affect your placement in google and could damage your high-quality score if ads and marketing with Adwords. Anyway I'm adding this RSS to my e-mail and could look out for much more of your respective intriguing content. Ensure that you update this again very soon.

Posted by: resorst | 2014.10.03 at 03:10 PM

There is certainly a great deal to know about this subject. I like all the points you made.

Posted by: Cathern | 2014.10.03 at 10:04 PM

I constantly spent my half an hour to read this website's content every day along with a mug of coffee.

Posted by: African Safari videos | 2014.10.04 at 03:00 PM

Appreciate the recommendation. Let me try it out.

Posted by: African Safari videos | 2014.10.05 at 01:59 PM

My family always say that I am wasting my time here at net, however I know I am getting know-how daily by reading such pleasant articles or reviews.

Posted by: vacation | 2014.10.06 at 03:49 AM

Ahaa, its nice dialogue regarding this post at this place at this blog, I have read all that, so at this time me also commenting here.

Posted by: African Safari videos | 2014.10.16 at 11:53 PM

I must thank you for the efforts you have put in penning this website. I really hope to check out the same high-grade blog posts by you in the future as well. In truth, your creative writing abilities has motivated me to get my own, personal site now ;)

Posted by: animal videos | 2014.10.20 at 01:48 AM

bookmarked!!, I love your website!

Posted by: Laverne | 2014.10.20 at 11:39 AM

I'm impressed, I must say. Seldom do I come across a blog that's both educative and interesting, and let me tell you, you have hit the nail on the head. The issue is something that too few men and women are speaking intelligently about. I'm very happy I stumbled across this during my hunt for something relating to this.

Posted by: African Safari videos | 2014.10.20 at 02:26 PM

Wonderful, what a web site it is! This website gives useful facts to us, keep it up.

Posted by: travel | 2014.10.21 at 11:32 PM

This is really fascinating, You're an excessively skilled blogger. I've joined your rss feed and stay up for searching for extra of your fantastic post. Also, I have shared your website in my social networks

Posted by: safari footage | 2014.10.22 at 11:50 PM

Good day! Do you use Twitter? I'd like to follow you if that would be ok. I'm absolutely enjoying your blog and look forward to new posts.

Posted by: mon plan Q | 2014.10.28 at 09:49 AM

Hello, I enjoy reading through your article post. I like to write a little comment to support you.

Posted by: Hye | 2014.11.06 at 09:08 AM

Good information. Lucky me I found your website by chance (stumbleupon). I have bookmarked it for later!

Posted by: http://www.youtube.com/watch?v=mhr7wfndyiu | 2015.01.27 at 10:13 AM

Post a comment



(Not displayed with comment.)




TrackBack

TrackBack URL for this entry:
http://app.cocolog-nifty.com/t/trackback/2111/99998

Listed below are links to weblogs that reference .NET CF / Windows CEのパフォーマンス:

« 「スゴ録」無償交換 | Main | ソフトウェアRAIDのパフォーマンス »