Member
- Jun
- Threads
- 1
- 53
- 1
- 8
AD: Mt2009 - Mobile & PC - 30 January 2026 CHECK THE PRESENTATION!
hello guys i was trying to add
and here where the problem is
please help me with it thanks
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

