您好,欢迎访问公文包
当前位置:首页 > 办公PPT > 办公PPT > 微软出品简洁色块型PPT
微软出品的简洁色块型PPT,采用鲜明色彩与简单图形结合,视觉效果清新直观,便于信息传达。下面是网友整理编辑的微软出品简洁色块型PPT相关范文,供大家参考学习,喜欢就下载支持!
ConsistentsetsofhardwarecapabilitiesdefinedbyMicrosoftResolutionTouchInputCPU/GPURAMHardwarekeyboardisoptionalTheCPULowlevelcontrolStraighttothemetalRawperformancetuningHighlevelabstractionRelyoncompilerandruntimeDeveloperproductivityPowerfulandexpressiveTypesafetyreduceshard-to-track-downbugsReflectionInitializersyntaxGreattooling(IntelliSense)SimilarenoughtoCthatlearningandportingareeasyBlazinglyfastcompilesC#Simplisticmark-and-sweepgarbagecollectionUnforgivingin-orderCPUarchitectureRequirescustomVMXinstructionsforoptimalmathperfSecurityarchitectureposeschallengesforjittedcodeKeepaneyeongarbagecollection!MoreforgivingtowardjittedcodeARMjitterismorematurethanPPCInstancemethodInterfaceDelegate/eventReflectionVirtualmethodC++allowsindependentchoiceof.NETtypesdictatetheirallocationandusagesemanticsDatatypeThememoryinwhichatypelives(placementnew)Howatypeinstanceisreferenced(T,T*,T&,constT&)Valuetypesint,bool,struct,Vector3Referencetypesclass,array,string,delegate,boxedvaluetypesOft-repeatedwisdomValuetypesliveonthestackReferencetypesliveontheheapValuetypeslivewherevertheyaredeclaredReferencetypeshavetwopiecesMemoryallocatedfromtheheapApointertothisheapmemoryThatissubtlyincorrectBydefault,preferclassoverstructureUsestructforthingsthatareSmall(=16bytes)ShortlivedPasslargestructuresbyreferenceMatrixa,b,c;c=Matrix.Multiply(a,b);//copies192bytes!Matrix.Multiply(refa,refb,outc);C++.NETAllocateInitiallyfast,becomingslowerasfragmentationincreasesVeryfast,apartfromperiodicgarbagecollectionsFreeFastInstantaneousFragmentationIncreasesovertimeNoneCachecoherencyRequirescustomallocatorsThingsallocatedcloseintimearealsocloseinphysicallocationGarbagecollectionisnotoptionalCan’thavetypesafetywithoutautomaticmemorymanagementTriggeredpermegabyteofallocation1Startswithrootreferences(stackvariables,statics)2Recursivelyfollowsallreferencestoseewhatotherobjectscanbereached3Anythingwedidn’treachmustbegarbage4Compactstheheap,slidingliveobjectsdowntofillholes5FrameworksdesignedforperformanceFrameworksdesignedforperformanceMakeitrunLessOftenIfyouneverallocate,GCwillneverrunMakeitFinishQuicklyCollectiontimeisproportionaltohowmanyobjectreferencesmustbetraversedUseobjectpoolsSimpleheap=fastcollectionUsevaluetypesandintegerhandlesExplicitlyforcesagarbagecollectionUsewiselytogiveyourselfmoreheadroomAfterloadingDuringpausesingameplayDon’tcalleveryframe!Bewareofboxingstringvs.StringBuilderUseWeakReferencetotrackGCfrequency’10talk:“DevelopmentandDebuggingToolsforWindowsPhone7Series”Use.NETReflectortopeekbehindthecurtain•0-3directionallights•Blinn-Phongshading•Optionaltexture•Optionalfog•OptionalvertexcolorBasicEffectVertexCostPixelCostNolighting51Onevertexlight401Threevertexlights601Threepixellights1850+Texture+1+2+Fog+4+2DualTextureEffect•Forlightmaps,detailtextures,decals•Blendstwotextures•Separatetexturecoordinates•Modulate2Xcombinemode(A*B*2)•GoodvisualsatlowpixelcostVertexCostPixelCostTwoTextures76+Fog+4+2•Forbillboardsandimposters•Addsalphatestoperations(pixelkill)•Standardblendingisfreewithalleffects•Onlyneedalphatestifyouwanttodisabledepth/stencilwritesAlphaTestEffectVertexCostPixelCost,=,=,66==,!=610+Fog+4+2SkinnedEffect•Foranimatedmodelsandinstancing•GamecodeanimatesbonesonCPU•VertexskinningperformedbyGPU•Upto72bones•One,two,orfourweightspervertexVertexCostPixelCostOnevertexlight554Threevertexlights754Threepixellights3351+Twobones+7+0+Fourbones+13+0+Fog+0+2EnvironmentMapEffect•Oooh,shiny!•Diffusetexture+cubeenvironmentmap•Cheapwaytofakemanycomplexlights•Fresneltermsimulatesbehaviorwhenlightreachesasurfaceandsomereflects,somepenetratesVertexCostPixelCostOnelight326Threelights366+Fresnel+7+0+Specular+0+2+Fog+0+2FramerateNumberofPixelsPixelCostFramerate•30hzrefreshrate•Nopointupdatingfasterthanthedisplay!Game.TargetElapsedTime=TimeSpan.FromSeconds(1f/30);PixelCost•Prefercheapereffects•MinimizeoverdrawManyknownalgorithms:Distance,frustum,BSP,sortfronttobackImplement“overdrawx-raymode”DrawuntexturedwithadditiveblendingBrighterareasindicateoverdrawNumberofPixels•800x480is25%morepixelsthanXbox1GreatfortextToomanypixelsforintensivegames800x480=384,000pixels600x360=216,000pixels(56%)•Dedicatedhardwarescaler•DoesnotconsumeanyGPU•HigherqualitythanbilinearupsamplingAvoidPreferRenderTargetUsage.PreserveContentsRenderTargetUsage.DiscardContentsdevice.BlendState=newBlendState{...};//AtstartupstaticBlendStatemyState=newBlendState{...};//PerframeDevice.BlendState=myState;VertexBuffer.SetData(...)device.DrawUserPrimitives(...);//orDynamicVertexBuffer.SetData(...,SetDataOptions.NoOverwrite);GreatperformancecomesfromgreatknowledgeUnderstandActionsValuetypesvs.referencetypesGarbagecollectionC#compilermagic(foreach,iteratormethods,closures)Costofthedifferentgraphicaleffectoptio
本文标题:微软出品简洁色块型PPT
链接地址:https://www.gongwenbao.net/doc/1043187 .html