摘要:摘自 http://www.bc-cn.net/Article/net/aspx/jszl/200601/3268.html Observer模式深度探索 ...
阅读全文
10 2006 档案
摘要:终于解决了,是由于一个DirectX的Font类没有实现IDisposable接口导致分配的资源未释放的原因。使用的调试工具是:.NET Memory Profiler 2.6试用版。修改后的程序所用内存资源稳定,未出现不断增长的现象。
阅读全文
摘要:自己写了个显示3D模型的组件,发现内存资源消耗太快,只要刷新,内存消耗就要增加2M。思考是什么原因。
阅读全文
摘要:实现双缓冲的具体步骤 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...
阅读全文
摘要:Metafile metafile = new Metafile("SampleMetafile.emf");e.Graphics.DrawImage(metafile, 60, 10);
阅读全文
摘要:参考于http://www.gamedev.net/community/forums/topic.asp?topic_id=295123&whichpage=1? 已知Mesh对象myMesh、相交信息IntersectInformation intInfo。1.得到三角形 short[] intersectedIndices = new short[3]; ...
阅读全文
浙公网安备 33010602011771号