Commit graph

7 commits

Author SHA1 Message Date
cremno
34be52fd3b Merge 4604461514 into f067e0eff8 2013-10-30 02:23:11 -07:00
Jonas Kulla
f067e0eff8 MRI-Binding: Reduce number of object allocations
Previously, wrapped instances of mkxp core classes were
stored as RData ivars inside the actual object. This turned
out to be pointless as RData objects themselves are perfectly
valid objects that can carry ivars and have parent classes.
Therefore, the RData objects are now exposed directly to
the user scripts, effectively halving the amount of object
allocations.
2013-10-30 10:06:24 +01:00
cremno
4604461514 MRI: {Rect,Color,Tone}#initialize_copy instead of #clone
- removed unused CLONE_FUNC

- #initialize_copy should be used instead of #clone. It's the general way to do it and the RGSS defines it, too
2013-10-22 17:00:45 +02:00
Jonas Kulla
26bc4842c0 MRI-Binding: Catch exceptions in '_load' implementations 2013-10-15 05:12:20 +02:00
Jonas Kulla
4ff563725b Make 'rb_get_args()' va_arg passing safer by introducing a termination marker
What can I say. I made a pact with the devil, and paid dearly.
Almost a whole day's worth of debugging, actually. Not again.

If this turns out to be slow we can always optimize the critical
parts (with no variable param count) later, or completely remove it.
2013-09-27 04:49:48 +02:00
Jonas Kulla
f81e20cc68 Raise exception on too big textures 2013-09-03 15:22:00 +02:00
Jonas Kulla
ff25887f41 Initial commit 2013-09-01 16:27:21 +02:00