Informations
Jump to content

Lorem Ipsum...

Click to Dismiss this Notification
Ładowanie danych...

Recommended Posts

spacer.png

 

To enhance your game's performance during the loading process, specifically in the CArea class, follow the steps below. This optimization involves modifying several files to introduce more efficient methods for handling object instances and effects.

Step-by-Step Modifications

1. Update EterBase/Utils.h

First, add the following interpolation functions to EterBase/Utils.h.

 
This is the hidden content, please

2. Modify GameLib/Area.h

Next, proceed to GameLib/Area.h and make the following updates:

  1. Change the Update method declaration:

     
This is the hidden content, please

to

 
  • This is the hidden content, please

     

  • Change the Refresh method as follows:

     
This is the hidden content, please

to:

 
  • This is the hidden content, please

     

  • Search for the function declaration:

     
This is the hidden content, please

and add these lines after it:

 
  • This is the hidden content, please

     

  • Locate the variable:

     
This is the hidden content, please

and add the following lines after it:

 
This is the hidden content, please

to:

 
  1. This is the hidden content, please

     

3. Modify GameLib/Area.cpp

Go to GameLib/Area.cpp and implement the following changes:

  1. Add the include directive:

     
  • This is the hidden content, please

     

  • Define the __UpdateLoadedObjectInstances function:

     
  • This is the hidden content, please

     

  • Define the __UpdateEffectList function:

     
  • This is the hidden content, please

     

  • Define the GetMaxLoadingDistanceSqr function:

     
  • This is the hidden content, please

     

  • In the constructor CArea::CArea, add:

     
  • This is the hidden content, please

     

  • Update __SetObjectInstance_SetEffect function:

     
  • This is the hidden content, please

     

  • Modify __Clear_DestroyObjectInstance function:

     
This is the hidden content, please

and

 
  • This is the hidden content, please

     

  • Update the Update method:

     
  • This is the hidden content, please

     

  • Adjust the Refresh method:

     
  1. This is the hidden content, please

     

  2. Update the __Load_BuildObjectInstances function:

 
This is the hidden content, please
  1. Update the GetObjectInstancePointer function:
 
This is the hidden content, please
  1. Modify the RenderEffect function:
 
This is the hidden content, please
  1. Update the RefreshPortal function:
 
This is the hidden content, please
  1. Change the Clear function:
 
This is the hidden content, please

4. Update GameLib/MapOutdoor.h

Modify the method as follows:

 
This is the hidden content, please

to

 
This is the hidden content, please

5. Modify GameLib/MapOutdoorUpdate.cpp

In the CMapOutdoor::__Game_UpdateArea function, remove this line:

 
This is the hidden content, please

Then add this before the line:

 
This is the hidden content, please

The following code:

 
This is the hidden content, please

6. Update CMapOutdoor::__UpdateAroundAreaList

Modify the function implementation:

 
This is the hidden content, please

 

These modifications will help enhance the loading process and performance of the CArea class, ensuring smoother gameplay and efficient resource management. Each step is tailored to address specific aspects of object instances and effects, ultimately contributing to a more polished gaming experience.

Link to comment
Share on other sites


Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

spacer.png

Disable AdBlock
The popup will be closed in 5 seconds...