Jump to content

Photo

ZC 2.5 RC 2.5 (Windows)


  • Please log in to reply
181 replies to this topic

#181 Gleeok

Gleeok

    It's dangerous to dough alone, bake this.

  • Members
  • Real Name:Pillsbury
  • Location:Magical Land of Dough

Posted 26 February 2012 - 03:58 PM

When I put the arrays in I swore I had a size limit.. ? >_< I'd consider that a bug as there are no checks for std::bad_alloc IIRC.

QUOTE(LinktheMaster @ Feb 26 2012, 12:35 PM) View Post

Ah. Yeah. I went back and did a test. Apparently what I must have been doing was copying string A with no manually set size to string B with a manually set size that was too small (it was 1 under, actually). When this happens, apparently ZScript still functions, but it lags terribly for whatever reason. icon_shrug.gif


Is it doing any file output to allegro.log there? That can also be really slow.

#182 Saffith

Saffith

    IPv7 user

  • ZC Developers

Posted 26 February 2012 - 04:06 PM

Dunno. I tried this:
CODE
ffc script test
{
    void run()
    {
        int arr1[214747];
        int arr2[214747];
        int arr3[214747];
        
        for(int i=0; i<214747; i++)
            arr1[i]=i;
        for(int i=0; i<214747; i++)
            arr2[i]=i;
        for(int i=0; i<214747; i++)
            arr3[i]=i;
        for(int i=0; i<214747; i++)
        {
            Trace(arr1[i]);
            Trace(arr2[i]);
            Trace(arr3[i]);
        }
    }
}


Pretty simple test, but it worked fine as far as that.


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users