• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

C++ Help with C++ Background Draw (past opentibia dev / current helbreath dev)

Kibidon

New Member
Joined
Mar 4, 2009
Messages
132
Reaction score
1

Current and what we need.

Willing to pay $1000+
Helbreath is an old game from 1999, it was originally rendered with directx 7.0. Currently my team has the client wrote in SFML with OPENGL and all directdraw functions replaced.
We cannot get the background to render smoothly or the camera.

If its still using directdraw or dx7, that is fine -- we just need smooth camera / scrolling like in first video.
Otherwise my friends SFML client using OPENGL has this for backgrounddraw:


Lua:
indexY = sDivY + m_pMapData->m_sPivotY;
        for (float iy = -sModY - 16; iy < ObrazY + 48; iy += 32)
        {
            //wsprintf(g_cTxt, "%d", iy);
            //drawText(15*iy, iy - 16, g_cTxt);

            indexX = sDivX + m_pMapData->m_sPivotX;
            for (float ix = -sModX - 16; ix < ObrazX + 48; ix += 32)
            {
                sSpr = m_pMapData->m_tile[indexX][indexY].m_sTileSprite;
                sSprFrame = m_pMapData->m_tile[indexX][indexY].m_sTileSpriteFrame;

                m_pTileSpr[sSpr]->PutSpriteFast(ix - 16, iy - 16, sSprFrame, m_dwCurTime);
                //wsprintf(g_cTxt, "%d/%d", ix, iy);
                //drawText(ix - 16, iy - 16, g_cTxt);
                indexX++;
            }
            indexY++;
        }

Only the 2nd clip runs truly at 60fps -- we can get our client to show 1000 fps but it only feels like 15-25 fps always. We need a solid 60 true FPS.


Add me on discord Xarios Sin#5237
Sorry if wrong section
 
Back
Top