Skip to content

some test about gamecache (discussion) #6

@shuen4

Description

@shuen4

d24e65e

test trigger:
global variable integer udg_test = 0
on event do:

set udg_test  = udg_test + 1
call BJDebugMsg(I2S(udg_test))
// reloaded code was above 2 code copied 999 times (total 1000)

test result on 1.26a:
Jass VM reach op limit while processing 46th (running trigger once increase udg_test by 1 (98 times) + reach op limit)
if disable Jass VM op limit: no more free instances runtime/instruction.j while processing 267th (running trigger once increase udg_test by 1 (910 times))

test conclusion:
using gamecache instead of GetPlayerTechMaxAllowed and GetPlayerName() - works
no longer a problem to load big-sized bytecode file
however there is another problem: Jass VM op limit and instances

debug info:
image

---------------------------------------
               Jass error
---------------------------------------
op code limit exceeded

stack traceback:
    [JHCR_Parser_parse_ins:246]
    [JHCR_Parser_parse_and_init:20]
    [JHCR_Init_parseTEST:83]
    [JHCR_Init_parse:2]
---------------------------------------
---------------------------------------
               Jass error
---------------------------------------
op code limit exceeded

stack traceback:
    [JHCR_Interpreter_step:30522]
    [JHCR_Interpreter_start_interpreter_wrap:72]
---------------------------------------

image
JHCR.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions