add GameThreadPool

This commit is contained in:
savis
2026-01-05 17:20:12 +01:00
parent dbdfd57c41
commit 7718c65d7a
12 changed files with 575 additions and 285 deletions

View File

@@ -939,6 +939,13 @@ unsigned __GetWindowMode(bool windowed)
bool CPythonApplication::Create(PyObject * poSelf, const char * c_szName, int width, int height, int Windowed)
{
// Initialize Game Thread Pool first - required by other systems
CGameThreadPool* pThreadPool = CGameThreadPool::InstancePtr();
if (pThreadPool)
{
pThreadPool->Initialize();
}
NANOBEGIN
Windowed = CPythonSystem::Instance().IsWindowed() ? 1 : 0;
@@ -1250,6 +1257,9 @@ void CPythonApplication::Destroy()
m_kEftMgr.Destroy();
m_LightManager.Destroy();
// Game Thread Pool
CGameThreadPool::Instance().Destroy();
// DEFAULT_FONT
DefaultFont_Cleanup();
// END_OF_DEFAULT_FONT