Skip to content

Commit

Permalink
Update version to 1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jimkeir committed Apr 8, 2024
1 parent 4dde346 commit 49588e2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ XLua is developed internally by Laminar Research and is intended to help our int
XLua is **not** meant to be an "official" Lua plugin for X-Plane, and it definitely does not replace any of the existing Lua plugins, all of which have significantly more features than XLua itself.

## Release Notes
**1.4.0r1 - 08/09/2023**
* Update to LuaJIT 2.1.0 rolling
* Set large enough LuaJIT parameters to handle all default aircraft

**1.3.0r1 - 08/09/2023**
* Improved logging of lua errors
* Lua print() and other log lines go to both console and X-Plane log file, tagged as `?/LUA:`
Expand Down Expand Up @@ -245,3 +249,6 @@ On some complex aircraft, you might also need to reset your scripts if the "Star
* _**Is there a way to compile a XLua script in a binary plugin (xpl file)?**_
* No. If you want or need to encrypt Lua scripts, you need to use SASL.

* _**Performance is terrible!**_
* If you have particularly complex Lua running from a single file then it's possible for the JIT to hit compiled-in memory limits. This causes a dramatic degradation of sim performance. From 1.4.0r1, these defaults are considerably higher than before and are enough to run the most complex of the Laminar Research aircraft. You can tell if your aircraft has the same issue by adding the line 'jit.off()' to the top of each of your scripts, or to the top of the init.lua script to disable it completely. If this immediately improves performance, you need to increase the memory limits further.
* XLua currently uses this: `jit.opt.start("maxmcode=7168", "maxtrace=3072", "maxirconst=1500", "maxside=400")`.
16 changes: 2 additions & 14 deletions src/xlua.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Copyright 2016, Laminar Research
// Copyright 2024, Laminar Research
// This source code is licensed under the MIT open source license.
// See LICENSE.txt for the full terms of the license.


#define VERSION "1.3.0r1"
#define VERSION "1.4.0r1"

#include <stdio.h>
#include <string.h>
Expand Down Expand Up @@ -32,18 +32,6 @@

using std::vector;

/*
TODO: get good errors on compile error.
TODO: pipe output somewhere useful.
*/

extern "C" {
#include "lua.h"
#include "lualib.h"
Expand Down

0 comments on commit 49588e2

Please sign in to comment.