ppt模板-配色簡(jiǎn)潔內(nèi)容豐富.pptx

上傳人:sh****n 文檔編號(hào):20766499 上傳時(shí)間:2021-04-18 格式:PPTX 頁(yè)數(shù):33 大?。?.25MB
收藏 版權(quán)申訴 舉報(bào) 下載
ppt模板-配色簡(jiǎn)潔內(nèi)容豐富.pptx_第1頁(yè)
第1頁(yè) / 共33頁(yè)
ppt模板-配色簡(jiǎn)潔內(nèi)容豐富.pptx_第2頁(yè)
第2頁(yè) / 共33頁(yè)
ppt模板-配色簡(jiǎn)潔內(nèi)容豐富.pptx_第3頁(yè)
第3頁(yè) / 共33頁(yè)

下載文檔到電腦,查找使用更方便

9.9 積分

下載資源

還剩頁(yè)未讀,繼續(xù)閱讀

資源描述:

《ppt模板-配色簡(jiǎn)潔內(nèi)容豐富.pptx》由會(huì)員分享,可在線閱讀,更多相關(guān)《ppt模板-配色簡(jiǎn)潔內(nèi)容豐富.pptx(33頁(yè)珍藏版)》請(qǐng)?jiān)谘b配圖網(wǎng)上搜索。

1、Adam SchaefferMicrosoft CorporationSESSION CODE: WPH3 0 8 銳普PPT論壇chinakui首發(fā) Consistent sets of hardware capabilities defined by MicrosoftResolutionTouch InputCPU / GPURAMHardware keyboard is optional Low level controlStraight to the metalRaw performance tuning High level abstractionRely on compiler

2、and runtimeDeveloper productivity Powerful and expressiveType safety reduces hard-to-track-down bugsReflectionInitializer syntaxGreat tooling (IntelliSense)Similar enough to C that learning and porting are easyBlazingly fast compilesC# Usually within a few percent of native performanceAwesome genera

3、tional garbage collectionPerformance shootout: Raymond Chen vs. Rico Marianihttp:/ 0 0 5 /0 5 /1 0 /4 1 6 1 5 1 .aspx Significant delta between managed and native.NET Compact FrameworkSimplistic mark-and-sweep garbage collectionXbox is not a general purpose computerUnforgiving in-order CPU architect

4、ureRequires custom VMX instructions for optimal math perfSecurity architecture poses challenges for jitted code In between Windows and Xbox 3 6 0.NET Compact FrameworkKeep an eye on garbage collection!ARMv7 CPUMore forgiving toward jitted codeARM jitter is more mature than PPC Instance methodInterfa

5、ceDelegate / eventReflectionVirtual method C+ allows independent choice of.NET types dictate their allocation and usage semanticsData typeThe memory in which a type lives (placement new)How a type instance is referenced (T, T*, Tc = Matrix.Multiply(a, b); / copies 192 bytes! Matrix.Multiply(ref a, r

6、ef b, out c); C+ .NETAllocate Initially fast, becoming slower as fragmentation increases Very fast, apart from periodic garbage collectionsFree Fast InstantaneousFragmentation Increases over time NoneCache coherency Requires custom allocators Things allocated close in time are also close in physical

7、 locationGarbage collection is not optionalCant have type safety without automatic memory management Triggered per megabyte of allocation1 Starts with root references (stack variables, statics)2 Recursively follows all references to see what other objects can be reached3 Anything we didnt reach must

8、 be garbage4 Compacts the heap, sliding live objects down to fill holes5 Frameworks designed for performance Frameworks designed for performanceMake it run Less OftenIf you never allocate, GC will never run Make it Finish QuicklyCollection time is proportional to how many object references must be t

9、raversedUse object pools Simple heap = fast collectionUse value types and integer handles Explicitly forces a garbage collectionUse wisely to give yourself more headroomAfter loadingDuring pauses in gameplayDont call every frame! Beware of boxingstring vs. StringBuilderUse WeakReference to track GC

10、frequencyhttp:/ 0 0 7 /1 0 /1 2 /monitoring-the-garbage-collector.aspxUse CLR Profiler on WindowsSee MIX1 0 talk: “Development and Debugging Tools for Windows Phone 7 Series”Use .NET Reflector to peek behind the curtainhttp:/www.red- Plus hardware accelerated 2D sprite drawingBasicEffectSkinnedEffec

11、tEnvironmentMapEffectAlphaTestEffectDualTextureEffect 0-3 directional lights Blinn-Phong shading Optional texture Optional fog Optional vertex colorBasicEffectVertex Cost Pixel CostNo lighting 5 1One vertex light 40 1Three vertex lights 60 1Three pixel lights 18 50+ Texture +1 +2+ Fog +4 +2 DualText

12、ureEffect For lightmaps, detail textures, decals Blends two textures Separate texture coordinates Modulate 2X combine mode (A*B*2) Good visuals at low pixel cost Vertex Cost Pixel CostTwo Textures 7 6+ Fog +4 +2 For billboards and imposters Adds alpha test operations (pixel kill) Standard blending i

13、s free with all effects Only need alpha test if you want to disable depth/stencil writesAlphaTestEffectVertex Cost Pixel Cost, =, 6 6=, != 6 10+ Fog +4 +2 SkinnedEffect For animated models and instancing Game code animates bones on CPU Vertex skinning performed by GPU Up to 72 bones One, two, or fou

14、r weights per vertex Vertex Cost Pixel CostOne vertex light 55 4Three vertex lights 75 4Three pixel lights 33 51+ Two bones +7 +0+ Four bones +13 +0+ Fog +0 +2 EnvironmentMapEffect Oooh, shiny! Diffuse texture + cube environment map Cheap way to fake many complex lights Fresnel term simulates behavi

15、or when light reaches a surface and some reflects, some penetrates Vertex Cost Pixel CostOne light 32 6Three lights 36 6+ Fresnel +7 +0+ Specular +0 +2+ Fog +0 +2 Framerate Numberof PixelsPixel Cost Framerate 3 0 hz refresh rate No point updating faster than the display! Game.TargetElapsedTime = Tim

16、eSpan.FromSeconds(1 f / 3 0 ); Pixel Cost Prefer cheaper effects Minimize overdrawMany known algorithms:Distance, frustum, BSP, sort front to backImplement “overdraw x-ray mode” Draw untextured with additive blendingBrighter areas indicate overdraw Numberof Pixels 8 0 0 x4 8 0 is 2 5 % more pixels t

17、han Xbox 1Great for textToo many pixels for intensive games8 0 0 x4 8 0 = 3 8 4 ,0 0 0 pixels6 0 0 x3 6 0 = 2 1 6 ,0 0 0 pixels (5 6 %) Dedicated hardware scaler Does not consume any GPU Higher quality than bilinear upsampling Avoid PreferRenderTargetUsage.PreserveContentsRenderTargetUsage.DiscardCo

18、ntentsdevice.BlendState = new BlendState .;/ At startupstatic BlendState myState = new BlendState .;/ Per frameDevice.BlendState = myState;VertexBuffer.SetData(.)device.DrawUserPrimitives(.);/ orDynamicVertexBuffer.SetData(., SetDataOptions.NoOverwrite); Great performance comes from great knowledgeUnderstandActionsValue types vs. reference typesGarbage collectionC# compiler magic (foreach, iterator methods, closures)Cost of the different graphical effect optionsUse CLR Profiler and .NET ReflectorRender smaller than display resolution, rely on scaler

展開(kāi)閱讀全文
溫馨提示:
1: 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
2: 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
3.本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
5. 裝配圖網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

相關(guān)資源

更多
正為您匹配相似的精品文檔
關(guān)于我們 - 網(wǎng)站聲明 - 網(wǎng)站地圖 - 資源地圖 - 友情鏈接 - 網(wǎng)站客服 - 聯(lián)系我們

copyright@ 2023-2025  zhuangpeitu.com 裝配圖網(wǎng)版權(quán)所有   聯(lián)系電話:18123376007

備案號(hào):ICP2024067431號(hào)-1 川公網(wǎng)安備51140202000466號(hào)


本站為文檔C2C交易模式,即用戶上傳的文檔直接被用戶下載,本站只是中間服務(wù)平臺(tái),本站所有文檔下載所得的收益歸上傳人(含作者)所有。裝配圖網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)上載內(nèi)容本身不做任何修改或編輯。若文檔所含內(nèi)容侵犯了您的版權(quán)或隱私,請(qǐng)立即通知裝配圖網(wǎng),我們立即給予刪除!