欢迎来到天天文库
浏览记录
ID:33833010
大小:6.86 MB
页数:67页
时间:2019-02-28
《3d游戏编程:gpu编程基础》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、GPUProgrammingYanciZhangGameProgrammingIIOutlineGPUoverviewOpenGLshadinglanguageoverviewVertex/Geometry/FragmentshaderApplication:Per-pixelshadingGameProgrammingIIWhatisGPU?GPU:GraphicsProcessingUnitDevelopedrapidlyfrombeingprimitivedrawingdevicestobeingmajorcomputingresourcesExtremel
2、ypowerfulandflexibleprocessorTremendousmemorybandwidthandcomputationalpowerHighlevellanguageshaveemergedCapableofgeneral-purposecomputationbeyondgraphicsapplicationsGameProgrammingIIMotivationInmanyrespectsGPUismorepowerfulthanCPUComputationalpower:FLOPS(FloatingpointOperationsPerSecond
3、)ParallelismBandwidthPerformancegrowthrateGameProgrammingIIFloatingPointCalculationFLOPS:AcommonbenchmarkmeasurementforratingthespeedofFPUCPUIntelCorei7980XE(quad-core):107.55GFLOPSGPUnVidiaGeForceGTX480:2.02TFLOPSModernGPUssupporthighprecision32-bitfloatingpointthroughoutthepipeli
4、neNosupportforadoubleprecisionformatGameProgrammingIIParallelismParallelism:allowssimultaneousoperationsatthesametimeCPUDonotadequatelyexploitparallelismDual-core,quad-coreGPUGeForceGTX480:512kernelsGameProgrammingIIBandwidthPeakperformanceofcomputersystemsisoftenfarinexcessofactuala
5、pplicationperformanceThebandwidthbetweenkeycomponentsultimatelydictatessystemperformanceCPU64bitsDDR3-2133dual-channel:17GB/sGPUGeForceGTX480:384bits,177.4GB/sGameProgrammingIIGettingFasterandFasterCPUAnnualgrowth~1.5x->decadegrowth~60xMoore’slawGPUAnnualgrowth~2.0x->decadegrowth>1
6、000xFasterthanMoore’slawMulti-billiondollarvideogamemarketisapressurecookerthatdrivesinnovationGameProgrammingIIKeystoHigh-Perf.ComputingEfficientcomputationMaximizethehardwaredevotedtocomputationAllowparallelismTaskparallelismDataparallelismInstructionparallelismEnsureeachcomputati
7、onunitoperatesatmaximumefficiencyGameProgrammingIIKeystoHigh-Perf.ComputingEfficientcommunicationSimplyprovidinglargeamountsofcomputationisnotsufficientPEsoftenspendmostofthetimewaitingfordataMinimizeoff-chipcommunicationGameProgrammingIIStream
此文档下载收益归作者所有