<div dir="ltr"><div><div>I haven't done profiling, but I strongly suspect that the slowdown is simply when there are large numbers of slices on the screen that have to do collision testing with each other.<br><br></div>
<div>If you are interested in profiling it, the game is at svn://<a href="http://gilgamesh.hamsterrepublic.com/ohrrpgce/games/vorpalflorist">gilgamesh.hamsterrepublic.com/ohrrpgce/games/vorpalflorist</a><br></div><div><br>
</div>I know someday we will have arrays, and then I can rather easily retrofit my scripts to store all the hero and enemy and object metadata in arrays rather than cramming it into the members of invisible child slices. I suspect that will help a bit.<br>
<br>---<br></div>James<br><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Feb 13, 2014 at 4:54 AM, Ralph Versteegen <span dir="ltr"><<a href="mailto:teeemcee@gmail.com" target="_blank">teeemcee@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On 13 February 2014 18:02, James Paige <<a href="mailto:Bob@hamsterrepublic.com">Bob@hamsterrepublic.com</a>> wrote:<br>

> To be more specific about those second thoughts<br>
><br>
> 1) Although the scrunch was working nicely, I had not considered the fact<br>
> that it means that the position and size of the child slices are effectively<br>
> in different units. I had expected to deal with this manually in my script,<br>
> until I noticed that it makes the "slice edge x" and "slice edge y" commands<br>
> useless. I am reluctant to add special-case handling for scrunch slices to<br>
> those commands. That would mean i would have to script my own versions of<br>
> them for my game, and that will probably have performance impacts. Those<br>
> commands do get use a whole lot in collision detection.<br>
><br>
> 2) After further testing, I doubt I can get my scripts to work reliably at<br>
> 36 FPS on the OUYA. Some existing enemies drag fps down to 17 fps, which is<br>
> not a big deal when 18.3 is my target, but is game-killing when 36.6 is my<br>
> target. Considering that the game looks nice and controls nice and feels<br>
> pleasant at 18.3, I have flip-flopped back to not wanting to change the<br>
> frame rate for this game.<br>
><br>
> So that leaves me doubting whether I should leave ScrunchSlice in at all. I<br>
> am leaning towards removing it, and I can always add it back later if<br>
> somebody is working on a project that would benefit from it.<br>
><br>
> ---<br>
> James<br>
<br>
</div>That's too bad.<br>
<br>
I would consider sliceedgex/y returning the wrong results a bug<br>
though. When scaling is implemented they will have to return positions<br>
in the slice's coordinate system.<br>
<br>
Have you tried running the game with the script profiler or a regular<br>
profiler to see where all the time is spent? I would be quite<br>
interested to know. (Assuming that it's whole due to scripts.) I<br>
believe that the slice commands are quite inefficient, which is a<br>
problem because a script interpreter won't change that (unless direct<br>
access to slice data as object members is added).<br>
<div class="HOEnZb"><div class="h5"><br>
> On Wed, Feb 12, 2014 at 3:55 PM, <<a href="mailto:subversion@hamsterrepublic.com">subversion@hamsterrepublic.com</a>> wrote:<br>
>><br>
>> james<br>
>> 2014-02-12 15:55:07 -0800 (Wed, 12 Feb 2014)<br>
>> 66<br>
>> Remove docs for Scrunch slice because I am having second thoughts<br>
>> ---<br>
>> U   wip/docs/plotdict.xml<br>
>> U   wip/docs/plotdictionary.html<br>
>> U   wip/whatsnew.txt<br>
>> _______________________________________________<br>
>> Ohrrpgce mailing list<br>
>> <a href="mailto:ohrrpgce@lists.motherhamster.org">ohrrpgce@lists.motherhamster.org</a><br>
>> <a href="http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org" target="_blank">http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org</a><br>
><br>
><br>
><br>
> _______________________________________________<br>
> Ohrrpgce mailing list<br>
> <a href="mailto:ohrrpgce@lists.motherhamster.org">ohrrpgce@lists.motherhamster.org</a><br>
> <a href="http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org" target="_blank">http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org</a><br>
><br>
_______________________________________________<br>
Ohrrpgce mailing list<br>
<a href="mailto:ohrrpgce@lists.motherhamster.org">ohrrpgce@lists.motherhamster.org</a><br>
<a href="http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org" target="_blank">http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org</a><br>
</div></div></blockquote></div><br></div>