Jump to content
×
×
  • Create New...
  • 0

luaL_setgcthreshold(L,0)


ds_aim

Question

Hy, someone know the echivalent of  

lua_setgcthreshold

in lua 5.3 ?  

Hidden Content

    Give reaction to this post to see the hidden content.

5.3 is the latest release.

Metin use a release from 2004 :))

 

 

 

Edited by ds_aim
  • Metin2 Dev 2
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Solved :D

 

Now lua work like a charm.  Just replace 

lua_setgcthreshold

with 

int lua_gc (lua_State *L, int what, int data);

But be carefuly this take 3 arguments.

Documentation: http://www.lua.org/manual/5.3/manual.html#lua_gc

Lua 5.1 Garbage Colector is good enough on its default settings. Only embedded systems may require Garbage Colector  tuning.

 

This is the original lua from kraizy.tgz  definiton of Garbage Colector.

/*
** garbage-collection functions
*/
LUA_API int   lua_getgcthreshold (lua_State *L);
LUA_API int   lua_getgccount (lua_State *L);
LUA_API void  lua_setgcthreshold (lua_State *L, int newthreshold);

2 arguments.

Edited by ds_aim
  • Metin2 Dev 1
  • Love 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Activity

    1. 6
    2. 9

      Help in implementing a switch bot

    3. 0

      Special Inventory System Can't Sell To Npc's

    4. 0

      ROV2.GLOBAL | International | Server start 14.05.2022

    5. 75

      Services - System Ard [C ++ / Python / Lua]

    6. 76

      Chatting Window Renewal (Mini Version)

    7. 2

      ItemShop GM ZONE TAB

    8. 9

      Help in implementing a switch bot

  • Recently Browsing

    • No registered users viewing this page.

Important Information

Terms of Use / Privacy Policy / Guidelines / 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.