- Поддерживаемые игры
-
- CS: Source (OrangeBox)
- CS: Source (v34)
- CS: GO
- Team Fortress 2
- DOD: Source
- L4D 1 & 2
- Half-Life 2: Deathmatch
- Synergy
- Codename Cure
- Black Mesa
Инклюд, позволяющий сравнить скорость нескольких функций.
C-подобный:
[Profiling] Started
[Profiling] Launching _StrEqual...
[Profiling] Launching _strcmp...
[Profiling] Result with 1000000 tests:
[Profiling] Function name | Total, sec | Avg, ms | Speed | Performance
[Profiling] StrEqual | 0.274257 | 0.000000274 | x1.0000 | 91.8% <<== Slowest
[Profiling] strcmp | 0.251848 | 0.000000251 | x1.0889 | 100.0% <<== Fastest
Пример кода:
#include <prof>
char buff[] = {"asdklastiajlkncnjansiejwij ijwoijadl knsjkld jawjd ioajsdl nasnd jaksnd kjasnhkjd najnd kjasn dkj"};
public void OnPluginStart()
{
Prof_Start(1000000);
Prof_Test("_StrEqual");
Prof_Test("_strcmp");
Prof_Results();
}
public bool _StrEqual()
{
if(StrEqual(buff, "some text", false))
return true;
return false;
}
public bool _strcmp()
{
if(strcmp(buff, "some text", false) == 0)
return true;
return false;
}
- Установка
-
Закинуть .inc файл в папку с инлюдами, где компилируете плагины.