Posts

Showing posts from April 17, 2019

Thomas Carlyle

Image
Thomas Carlyle Thomas Carlyle (4 Decembris 1795—5 Februarii 1881) fuit progymnasmarum, historiarum, saturarumque scriptor Scotus, cuius opera praesertim in Aevo Victoriano maximi momenti fuerunt. Ab severa familia Calvinista ortus, evangelista parentibus esse expectatus erat, sed Univeristatem Academiam Edinburgensem adsistens, fidem Christianam perdidit, virtutes tamen Calvinismas totam per vitam habuit. Haec collatio virtutum religiosarum perditaeque fidei, quae eius operibus inest, civibus Victorianis, qui conturbati novas ob vices scientiae rerumque politicarum fuerunt, valde placuit. Index 1 Vita Iuvenis atque Auctoritates 2 Opera 2.1 Opera iuvenis Carlyle 2.2 "Sartor Resartus" 2.3 "Gallica Revolutio" 2.4 "De Praeteritis Praesentibusque Rebus" 2.5 "De Herois et eorum Cultu" 2.6 Opera ultima 3 Vita Privata 4 Index Operum 5 Bibliographia Vita Iuvenis atque Auctoritates | ...

Finds a Character based on distance and health

Image
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0; } 1 $begingroup$ I need to improve the efficiency of my program and, using the profiler, have narrowed the problem down to 2 key areas, but I am having trouble coming up with ways to make the program run better. Based on my profiler's report, it seems to be telling me that my if functions are inefficient. Whats a better way to achieve a better result? Character* FindAttackTarget() const { float weakestHp = FLT_MAX; Character* weakestEnemy = nullptr; uint64_t weakestCharId = INT64_MAX; //Only attack characters that are within attack range auto& gameChars = m_pGame->m_gameChara...