Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How do we get around the 200 opcode limit?

New Here ,
Mar 14, 2013 Mar 14, 2013

I've got a program that's longer than 200 opcodes.  How can I deal with this?

Thanks!

TOPICS
ActionScript
449
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

New Here , Mar 18, 2013 Mar 18, 2013

Looks like there are 2 ways.  For both ways you need to break up your program into smaller programs.

You can either do all the rendering on the back buffer and change the blend mode to additive (so your changes add up). Then do something like this:

clear

setProgram1

drawTris

setProgram2

drawTris

...

present

Or you can try rendering to a texture and then using that texture in further renderings (on the same frame).  I couldn't get this way to work, but look into setRenderToTexture vs setRenderToBackBuffer

...
Translate
New Here ,
Mar 18, 2013 Mar 18, 2013
LATEST

Looks like there are 2 ways.  For both ways you need to break up your program into smaller programs.

You can either do all the rendering on the back buffer and change the blend mode to additive (so your changes add up). Then do something like this:

clear

setProgram1

drawTris

setProgram2

drawTris

...

present

Or you can try rendering to a texture and then using that texture in further renderings (on the same frame).  I couldn't get this way to work, but look into setRenderToTexture vs setRenderToBackBuffer.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines