Jump to content

Search the Community

Showing results for tags 'oneachframe'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • BOHEMIA INTERACTIVE
    • BOHEMIA INTERACTIVE - NEWS
    • BOHEMIA INTERACTIVE - JOBS
    • BOHEMIA INTERACTIVE - GENERAL
  • FEATURED GAMES
    • Arma Reforger
    • Vigor
    • DAYZ
    • ARMA 3
    • ARMA 2
    • YLANDS
  • MOBILE GAMES
    • ARMA MOBILE OPS
    • MINIDAYZ
    • ARMA TACTICS
    • ARMA 2 FIRING RANGE
  • BI MILITARY GAMES FORUMS
  • BOHEMIA INCUBATOR
    • PROJECT LUCIE
  • OTHER BOHEMIA GAMES
    • ARGO
    • TAKE ON MARS
    • TAKE ON HELICOPTERS
    • CARRIER COMMAND: GAEA MISSION
    • ARMA: ARMED ASSAULT / COMBAT OPERATIONS
    • ARMA: COLD WAR ASSAULT / OPERATION FLASHPOINT
    • IRON FRONT: LIBERATION 1944
    • BACK CATALOGUE
  • OFFTOPIC
    • OFFTOPIC
  • Die Hard OFP Lovers' Club's Topics
  • ArmA Toolmakers's Releases
  • ArmA Toolmakers's General
  • Japan in Arma's Topics
  • Arma 3 Photography Club's Discussions
  • The Order Of the Wolfs- Unit's Topics
  • 4th Infantry Brigade's Recruitment
  • 11th Marine Expeditionary Unit OFFICIAL | 11th MEU(SOC)'s 11th MEU(SOC) Recruitment Status - OPEN
  • Legion latina semper fi's New Server Legion latina next wick
  • Legion latina semper fi's https://www.facebook.com/groups/legionlatinasemperfidelis/
  • Legion latina semper fi's Server VPN LEGION LATINA SEMPER FI
  • Team Nederland's Welkom bij ons club
  • Team Nederland's Facebook
  • [H.S.O.] Hellenic Special Operations's Infos
  • BI Forum Ravage Club's Forum Topics
  • Exilemod (Unofficial)'s General Discussion
  • Exilemod (Unofficial)'s Scripts
  • Exilemod (Unofficial)'s Addons
  • Exilemod (Unofficial)'s Problems & Bugs
  • Exilemod (Unofficial)'s Exilemod Tweaks
  • Exilemod (Unofficial)'s Promotion
  • Exilemod (Unofficial)'s Maps - Mission Files
  • TKO's Weferlingen
  • TKO's Green Sea
  • TKO's Rules
  • TKO's Changelog
  • TKO's Help
  • TKO's What we Need
  • TKO's Cam Lao Nam
  • MSOF A3 Wasteland's Server Game Play Features
  • MSOF A3 Wasteland's Problems & Bugs
  • MSOF A3 Wasteland's Maps in Rotation
  • SOS GAMING's Server
  • SOS GAMING's News on Server
  • SOS GAMING's Regeln / Rules
  • SOS GAMING's Ghost-Town-Team
  • SOS GAMING's Steuerung / Keys
  • SOS GAMING's Div. Infos
  • SOS GAMING's Small Talk
  • NAMC's Topics
  • NTC's New Members
  • NTC's Enlisted Members
  • The STATE's Topics
  • CREATEANDGENERATION's Intoduction
  • CREATEANDGENERATION's HAVEN EMPIRE (NEW CREATORS COMMUNITY)
  • HavenEmpire Gaming community's HavenEmpire Gaming community
  • Polska_Rodzina's Polska_Rodzina-ARGO
  • Carrier command tips and tricks's Tips and tricks
  • Carrier command tips and tricks's Talk about carrier command
  • ItzChaos's Community's Socials
  • Photography club of Arma 3's Epic photos
  • Photography club of Arma 3's Team pics
  • Photography club of Arma 3's Vehicle pics
  • Photography club of Arma 3's Other
  • Spartan Gamers DayZ's Baneados del Servidor
  • Warriors Waging War's Vigor
  • Tales of the Republic's Republic News
  • Operazioni Arma Italia's CHI SIAMO
  • [GER] HUSKY-GAMING.CC / Roleplay at its best!'s Starte deine Reise noch heute!
  • empire brotherhood occult +2349082603448's empire money +2349082603448
  • NET88's Twitter
  • Mercurious Brotherhood +2347063372861's +2347063372861>> I WANT TO JOIN OCCULT FOR MONEY RITUAL
  • 123betcasino01's Topics
  • TEORI BERITA's qqsuper99
  • QQSUPER99: Daftar Situs Slot Gacor Online Link Terbaru Gampang Menang's slot gacor
  • QQSUPER99: Daftar Situs Slot Gacor Online Link Terbaru Gampang Menang's slot gacor

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Yahoo


Jabber (xmpp)


Skype


Biography


Twitter


Google+


Youtube


Vimeo


Xfire


Steam url id


Raptr


MySpace


Linkedin


Tumblr


Flickr


XBOX Live


PlayStation PSN


Origin


PlayFire


SoundCloud


Pinterest


Reddit


Twitch.Tv


Ustream.Tv


Duxter


Instagram


Location


Interests


Interests


Occupation

Found 4 results

  1. Hello everyone. I have a script that I need to run on each frame. The problem is, it can get too heavy sometimes (it runs some code for each element of an array, and if the array gets too big, the code gets slow), enough to reach 1 ms or longer execution time in code performance. I think I read somewhere that codes that run in scheduled environment (such as those called by waitUntil) have a time limit of 3 ms before being stopped by the engine. What is the best way of balancing performance and making sure the code is executed correctly? 1. Using onEachFrame stacked EH 2. Using Draw3d mission EH 3. Using waitUntil (without sleep) I think the first two methods won't get interrupted if the execution time exceeds 3 ms. But it might also mean that the code will slow down the mission even more. I have tested all three methods but they all appear more or less the same. I'd appreciate any help with this.
  2. With additional units on the field the FPS starts to drop. I would like to have the script only calculate the _distance every second instead of on every frame to see how much it improves FBS. Any ideas? I have tried the following with no luck private ["_randomSectorDestination","_revealTime","_enemyArray","_addNew"]; _enemyArray = []; _distance = 0; _displayName = ""; _picture = ""; _icon = ""; _revealTime = 30; _run = missionNamespace setVariable ["Intel",0]; _timer = missionNamespace setVariable ["Timer",time]; fn_Draw3DNEW = { _enemyArray = []; _distance = 0; _displayName = ""; _picture = ""; _icon = ""; _run = missionNamespace getVariable ["Intel",0]; _timer = missionNamespace getVariable ["Timer",0]; {if (((side _x) == AIside) && (isFormationLeader _x)) then {_enemyArray pushBack _x}} forEach allUnits+vehicles+allUnitsUAV; { _text = ""; if ( floor(time-_timer) == _run ) then { _run = missionNamespace setVariable ["Intel",_run + 5]; private ["_private", "_displayName", "_picture", "_icon", "_text", "_distance", "_leaderDestination","_enemyArray"]; if (vehicle _x != _x) then {_x = vehicle _x}; _distance = round (_x distance player); _displayName = getText (configfile >> "CfgVehicles" >> typeOf _x >> "displayName"); }; _text = str(parseText format["%1 men %2m",count units group _x, (str _distance)]); _icon = ""; if ( (_x isKindOf "LandVehicle") or (_x isKindOf "Air") or (_x isKindOf "Ship") ) then { _picture = getText (configfile >> "CfgVehicles" >> typeOf _x >> "picture"); } else { _icon = getText (configFile >> "CfgVehicles" >> typeOf _x >> "Icon"); _picture = getText (configFile >> "CfgVehicleIcons" >> _icon); }; drawIcon3D [ _picture, [1,0,0,1], [(visiblePosition _x) select 0,(visiblePosition _x) select 1,((visiblePosition _x) select 2) + 10], 0.8, 0.5, 0, _text, 0, 0.03, "PuristaMedium" ]; player reveal [_x, 4]; {[_x, 1] showWaypoint "ALWAYS" } forEach allGroups; } forEach _enemyArray; hint format ["_run: %1 \n floor(time-_timer): %2 \n floor(time-_timer) == _run: %3", _run, floor(time-_timer), floor(time-_timer) == _run]; }; _addNew = ["BIS_idNEW", "onEachFrame", "fn_Draw3DNEW"] call BIS_fnc_addStackedEventHandler; sleep (_revealTime); ["BIS_idNEW", "onEachFrame", "fn_Draw3DNEW"] call BIS_fnc_removeStackedEventHandler; _run = missionNamespace setVariable ["Intel",nil]; _timer = missionNamespace setVariable ["Intel",nil]; thanks in advance...
  3. HI All, I'm creating script to display the wayPoints of all AI groups on the screen using an "onEachFrame" in a stackedEventHandler, in order to figure what their currentWaypoint is and how it works. But, I can't figure out why the framerate goes from 40-50 fps to 1 or 0 after a few minutes when a several (10-20) groups are on screen with the script below: Thanks for any help in advance.
  4. Hi all, desperate to see that BI don't want to add a SP revive function in Arma 3, I decided to create one for my mission but I can't use the one of Norrin because there is a bug with my mission : my team become invincible x) ! So, I'm almost done with the script but some problems remain : I have four playable units : unit1, unit2, unit3 and unit4. unit1 is the team leader/player. 1 - there is my first script (named "test.sqf") and First problem : I don't know how to apply this script to all the members of my team so for the example, I choose unit3 : _damage = damage unit3; _Hurt = _damage > 0.5; if (_Hurt) then {unit3 execVM "injured.sqf"} else {execVM "test.sqf"}; For this, I want to know how can I get the damages of unit1 to unit4 and check if _damage > 0.5 to execute injured.sqf for all of the units who are hurt. 2 - Injured.sqf, same problem than test.sqf : unit3 allowDamage false; unit3 playMove "AinjPpneMstpSnonWrflDnon_rolltoback"; sleep 3; unit3 playMove "AinjPpneMstpSnonWrflDnon_InhuredHealed"; unit3 DisableAI "MOVE"; unit3 addAction ["Revive", "Heal.sqf", nil, 6, true, true, "", "(_target distance _this) < 2"]; 3 - Heal.sqf - the most Important = First, I don't know if the 3 variables are correct (_wounded = the wounded / _medic = the caller of the action / _revive = the ID of the action); _medic playmove ... seems to do nothing (I think the problem is _medic) and finally, player playmove "animation_name" doesn't work, but work with an AI, do you have an idea ? : _wounded = this select 0; _medic = this select 1; _revive = this select 2; _medic playmove "Acts_TreatingWounded_in"; sleep 3; _medic playmove "Acts_TreatingWounded01"; sleep 5; _medic playmove "Acts_TreatingWounded02"; sleep 8; _medic playmove "Acts_TreatingWounded03"; sleep 9; _medic playmove "Acts_TreatingWounded_Out"; sleep 4; _medic setDamage 0; sleep 2; unit3 playMove "AinjPpneMstpSnonWrflDnon_rolltofront"; sleep 3; unit3 playMove "AmovPpneMstpSrasWrflDnon_AmovPercMstpSrasWrflDnon"; unit3 setCaptive false; unit3 allowDamage true; _wounded removeAction _revive; Thanks for the help ^^ !
×