[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Direct Memory Access to Lua variables?
- From: Javier Guerra <javier@...>
- Date: Wed, 22 Jul 2009 17:24:20 +0000
On Wed, Jul 22, 2009 at 5:15 PM, b's spam<spam@inlandstudios.com> wrote:
> I'm writing a C++ wrapper class that allows me to manipulate variables in a
> loaded lua script. It works fine, but is very slow because I'm performing
> these operations many times (in real-time). Is there a way to write directly
> to the memory location without having to search and push the variable onto
> the stack by name?
if you're executing Lua code between the C++ accesses, any Lua table
(including _G) could've been rehashed, rendering any 'direct access'
address unusable.
--
Javier