
全英文微软公司项目介绍汇报总结商务型ppt模板
32页1、Building a High Performance 3D Games for Windows Phone,Adam Schaeffer Microsoft Corporation,SESSION CODE: WPH308,Consistent sets of hardware capabilities defined by Microsoft,Windows Phone 7 Hardware,Resolution Touch Input CPU / GPU RAM Hardware keyboard is optional,The CPU,The Evolution Of Programming,Low level control,Straight to the metal,Raw performance tuning,High level abstraction,Rely on compiler and runtime,Developer productivity,Why C# r0 x0rz,Powerful and expressive,Type safety reduces
2、 hard-to-track-down bugs,Reflection,Initializer syntax,Great tooling (IntelliSense),Similar enough to C that learning and porting are easy,Blazingly fast compiles,C#,.NET on Windows,Usually within a few percent of native performance,Awesome generational garbage collection,Performance shootout: Raymond Chen vs. Rico Mariani http:/,.NET on Xbox 360,360,Significant delta between managed and native,.NET Compact Framework Simplistic mark-and-sweep garbage collection,Xbox is not a general purpose comp
3、uter Unforgiving in-order CPU architecture Requires custom VMX instructions for optimal math perf Security architecture poses challenges for jitted code,.NET on Windows Phone 7,In between Windows and Xbox 360,.NET Compact Framework Keep an eye on garbage collection!,ARMv7 CPU More forgiving toward jitted code ARM jitter is more mature than PPC,Ways To Call Code,Instance method,Interface,Delegate / event,Reflection,Virtual method,Choose Your Own Address,C+ allows independent choice of,.NET types
4、dictate their allocation and usage semantics,Data type The memory in which a type lives (placement new) How a type instance is referenced (T, T*, T c = Matrix.Multiply(a, b); / copies 192 bytes! Matrix.Multiply(ref a, ref b, out c);,Memory Management,Garbage collection is not optional Cant have type safety without automatic memory management,Mark and Sweep,Triggered per megabyte of allocation,1,Starts with root references (stack variables, statics),2,Recursively follows all references to see wha
5、t other objects can be reached,3,Anything we didnt reach must be garbage,4,Compacts the heap, sliding live objects down to fill holes,5,Frameworks designed for performance,Frameworks designed for performance,Two Ways To Keep GC Happy,Make it run Less Often,If you never allocate, GC will never run,Make it Finish Quickly,Collection time is proportional to how many object references must be traversed,Use object pools,Simple heap = fast collection,Use value types and integer handles,GC.Collect,Expli
《全英文微软公司项目介绍汇报总结商务型ppt模板》由会员小****分享,可在线阅读,更多相关《全英文微软公司项目介绍汇报总结商务型ppt模板》请在金锄头文库上搜索。