XenoLight / infinity-client

Automatically exported from code.google.com/p/infinity-client
0 stars 0 forks source link

No game rendering or paint rendering #12

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
To save CPU, I modified CanvasWrapper.java so that it returns essentially a 
"blank" graphics object upon RuneScape calling getGraphics();

Original issue reported on code.google.com by somanayr@gmail.com on 15 Dec 2010 at 10:27

Attachments:

GoogleCodeExporter commented 9 years ago
Oh, yeah. To use it:
renderPaint(true) to turn on painting, but leave the game in its current state
renderPaint(false) to turn off painting, but leave the game in its current state
renderGame(true) to turn on game rendering, but leave the paint in its current 
state
renderGame(false) to turn off game rendering, but leave the paint in its 
current state

Original comment by somanayr@gmail.com on 15 Dec 2010 at 10:48

GoogleCodeExporter commented 9 years ago
This development has been started and is up for review. client version 8.18. 
Please allow 1 client version to review findings before we deside if this is 
something we want to add in or not.

Fellow devs and script writers please submit thoughts and ideas to this dev 
idea here to help deside if this is something we would honestly be interested 
in adding into our client. 

Original comment by bobbybig...@runedev.info on 16 Dec 2010 at 2:46

GoogleCodeExporter commented 9 years ago
Something like this can be usefully if programmed properly.
I'll look into the code and further tell you what i think and if it is really 
something we could use.

Original comment by secret...@runedev.info on 16 Dec 2010 at 3:01

GoogleCodeExporter commented 9 years ago
There was the option to have a Graphics blank class, rather than a Graphics2D 
blank class. Runescape asks for the Graphics, Runedev asks for the Graphics2D. 
I decided against it, as I decided having the two singletons would probably 
chew up more heap space than time saved.

Original comment by somanayr@gmail.com on 16 Dec 2010 at 3:52