• 🎉 Hey there! I've just launched my brand new server voting platform — Metin2 P Servers 🚀

Not answered Client Optimization (Lag Fix) problem

Member
Jun
Threads
1
53
1
8

AD: Mt2009 - Mobile & PC - 30 January 2026 CHECK THE PRESENTATION!

hello guys i was trying to add

that system C ++ Client Optimization (Lag Fix)

but i got problem and i tried to fix it but everyting i tried didnt work so here the problem

C++:
 error C2065: 'verticesMap': undeclared identifier
 error C2530: 'p': references must be initialized
 error C3531: 'p': a symbol whose type contains 'auto' must have an initializer
 error C2143: syntax error: missing ';' before ':'
 error C2143: syntax error: missing ';' before ')'
 error C2660: 'CStateManager::SetTexture': function does not take 1 arguments
 message : see declaration of 'CStateManager::SetTexture' (compiling source file GrpTextInstance.cpp)
 message : while trying to match the argument list '(int)'
 error C3536: 'f': cannot be used before it is initialized
 error C3536: 'l': cannot be used before it is initialized
 error C2100: illegal indirection
 error C2665: 'CGraphicBase::SetPDTStream': no overloaded function could convert all the argument types

and here where the problem is
C++:
for (auto & p : verticesMap)

    {

        STATEMANAGER.SetTexture(0, p.first->GetD3DTexture());

      

        for (auto f = p.second.begin(), l = p.second.end(); f != l; )

        {

            const auto batchCount = std::min<std::size_t>(LARGE_PDT_VERTEX_BUFFER_SIZE,l - f);

          

            if (CGraphicBase::SetPDTStream(&*f, batchCount))

                STATEMANAGER.DrawPrimitive(D3DPT_TRIANGLESTRIP, 0, batchCount - 2);     

                f += batchCount;

        }

please help me with it thanks
 
Metin2Hub Bot
M2Hub Bot
Feb
Threads
66
2,380
2
1,307
113
hello guys i was trying to add

that system C ++ Client Optimization (Lag Fix)

but i got problem and i tried to fix it but everyting i tried didnt work so here the problem

C++:
 error C2065: 'verticesMap': undeclared identifier
 error C2530: 'p': references must be initialized
 error C3531: 'p': a symbol whose type contains 'auto' must have an initializer
 error C2143: syntax error: missing ';' before ':'
 error C2143: syntax error: missing ';' before ')'
 error C2660: 'CStateManager::SetTexture': function does not take 1 arguments
 message : see declaration of 'CStateManager::SetTexture' (compiling source file GrpTextInstance.cpp)
 message : while trying to match the argument list '(int)'
 error C3536: 'f': cannot be used before it is initialized
 error C3536: 'l': cannot be used before it is initialized
 error C2100: illegal indirection
 error C2665: 'CGraphicBase::SetPDTStream': no overloaded function could convert all the argument types

and here where the problem is
Code:
 for (auto & p : verticesMap)
    {
        STATEMANAGER.SetTexture(0, p.first->GetD3DTexture());
        
        for (auto f = p.second.begin(), l = p.second.end(); f != l; )
        {
            const auto batchCount = std::min<std::size_t>(LARGE_PDT_VERTEX_BUFFER_SIZE,l - f);
            
            if (CGraphicBase::SetPDTStream(&*f, batchCount))
                STATEMANAGER.DrawPrimitive(D3DPT_TRIANGLESTRIP, 0, batchCount - 2);       
                f += batchCount;
        }
    }

please help me with it thanks

Hello dear user,

Your post will be under surveillance by bots for the next few hours.

Forum description : Metin2 private server, Metin2 download, Metin2 support, Metin2 Forum, Metin2 Pvp Servers, Errors, Bugs, Requests, Metin2 Pvp Forum, Everything About Metin2.
 
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock