Raised This Month: $ Target: $400
 0% 

benchmark/profiling entity_range() and get_distance_f() with cached origins


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
SchlumPF*
Veteran Member
Join Date: Mar 2007
Old 04-02-2009 , 15:37   benchmark/profiling entity_range() and get_distance_f() with cached origins
Reply With Quote #1

can someone pls benchmark this code? i cant cuz my cs is crashing with both profiling binarys

PHP Code:
#include <amxmodx>
#include <engine>
#include <fakemeta>

#define TESTS 100000

public plugin_init( )
{
    
register_clcmd"say /test1""cmdTest1" );
    
register_clcmd"say /test2""cmdTest2" );
}

public 
cmdTest1plr )
{
    new 
Float:distance;
    
    for( new 
iTESTSi++ )
    {
        
distance entity_rangeplr);
    }
}

public 
cmdTest2plr )
{
    new 
Float:distance;

    new 
Float:origin1[3], Float:origin2[3];
    
pevplrpev_originorigin1 );
    
pev2pev_originorigin2 );
    
    for( new 
iTESTSi++ )
    {
        
distance get_distance_forigin1origin2 );
    }

__________________
SchlumPF* is offline
Send a message via ICQ to SchlumPF*
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:17.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode