Drizzle

博客园 首页 新随笔 联系 订阅 管理

10 2006 档案

摘要:摘自 http://www.bc-cn.net/Article/net/aspx/jszl/200601/3268.html Observer模式深度探索 ... 阅读全文
posted @ 2006-10-27 15:14 岁月随风 阅读(220) 评论(0) 推荐(0)

摘要:终于解决了,是由于一个DirectX的Font类没有实现IDisposable接口导致分配的资源未释放的原因。使用的调试工具是:.NET Memory Profiler 2.6试用版。修改后的程序所用内存资源稳定,未出现不断增长的现象。 阅读全文
posted @ 2006-10-24 16:57 岁月随风 阅读(208) 评论(0) 推荐(0)

摘要:自己写了个显示3D模型的组件,发现内存资源消耗太快,只要刷新,内存消耗就要增加2M。思考是什么原因。 阅读全文
posted @ 2006-10-23 16:58 岁月随风 阅读(230) 评论(0) 推荐(0)

摘要:实现双缓冲的具体步骤 1、在内存中建立一块“虚拟画布”: Bitmap bmp = new Bitmap(600, 600); 2、获取这块内存画布的Graphics引用: Graphics g = Graphics.FromImage(bmp); 3、在这块内存画布上绘图: g.FillEllipse(brush, i * 10, j * 10, 10, 10); 4、将内存画布画到窗口中 th... 阅读全文
posted @ 2006-10-17 13:43 岁月随风 阅读(426) 评论(0) 推荐(0)

摘要:Metafile metafile = new Metafile("SampleMetafile.emf");e.Graphics.DrawImage(metafile, 60, 10); 阅读全文
posted @ 2006-10-12 14:46 岁月随风 阅读(313) 评论(0) 推荐(0)

摘要:参考于http://www.gamedev.net/community/forums/topic.asp?topic_id=295123&whichpage=1? 已知Mesh对象myMesh、相交信息IntersectInformation intInfo。1.得到三角形 short[] intersectedIndices = new short[3]; ... 阅读全文
posted @ 2006-10-08 17:14 岁月随风 阅读(287) 评论(0) 推荐(0)