讀讀武俠
I.渲染屬性








II.登陸邏輯
加載場景(CRenderSystem::Scene_Load)------>加載當前場景
------>清理靜態幾何體
------>清理硬件緩存
------>清理PASS MAP
------>加載場景
------>ExpatParser解析SCENE文件
------>加載地形
------>銷毀不使用資源
------>設置lightmap
------>設置環境特效
------>推場景事件GE_SCENE_TRANSED(將進入場景事件推入入CEventSystem::m_mapEventIndex_AsID)
------>設置傳送點(從DBC數據庫中讀出當前場景名作為關鍵字的場景信息中的傳送點)
創建Player對象(綁定相關Plaer屬性、設置位置,綁定服務器信息、綁定相機)
推Plaer事件GE_PLAYER_ENTER_WORLD
推角色選擇事件(GE_GAMELOGIN_CLOSE_SELECT_CHARACTOR)
推背景界面事件(GE_GAMELOGIN_CLOSE_BACK_GROUND)
轉入游戲主循環狀態機(CGameProcedure::s_pProcMain)
call statck
1
WXClient.exe!CGamePro_Enter::EnterScene
2
WXClient.exe!Packets::GCEnterSceneHandler::Execute
3
WXClient.exe!Packets::GCEnterScene::Execute
4
WXClient.exe!CNetManager::executePacket_CPP_Exception
5
WXClient.exe!CNetManager::executePacket_Gen_Exception
6
WXClient.exe!CNetManager::ProcessInputStream
7
WXClient.exe!CNetManager::ProcessCommands
8
WXClient.exe!CNetManager::WaitPacket
9
WXClient.exe!CNetManager::TickGameEnterProcedure
10
WXClient.exe!CNetManager::Tick
11
WXClient.exe!CGameProcedure::Tick
12
WXClient.exe!CGamePro_Enter::Tick
13
WXClient.exe!CGameProcedure::TickActive
14
WXClient.exe!CGameProcedure::MainLoop

2

3

4

5

6

7

8

9

10

11

12

13

14

最壞幀率控制






















OGRE\武俠交流群:46060118