From 71a9bf976ab678a0a17a6722f35f6b6f1f892290 Mon Sep 17 00:00:00 2001 From: Daniel Scharrer Date: Tue, 11 Jan 2022 22:48:51 +0100 Subject: [PATCH] ArxGame: Disable color keying for particles that don't need it Fixes: issue #1595 (for fog, fire smoke, water and lava) --- CHANGELOG | 4 ++++ src/core/ArxGame.cpp | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index ec1290c3a5..0788eb7af7 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -38,6 +38,10 @@ Debugging: * Added a new entity visibility debug HUD under F11 +Performance: + +* Fixed excessively slow performance with "Crisp" alpha cutout antialiasing (bug #1595) + ################################################################################ = Arx Libertatis 1.2 "Mega Mega Mega" (2021-07-13) = diff --git a/src/core/ArxGame.cpp b/src/core/ArxGame.cpp index 3ff2710455..5eb93b5a8c 100644 --- a/src/core/ArxGame.cpp +++ b/src/core/ArxGame.cpp @@ -520,14 +520,14 @@ static void LoadSysTextures() { spellDataInit(); - enviro = TextureContainer::LoadUI("graph/particles/enviro"); + enviro = TextureContainer::LoadUI("graph/particles/enviro", TextureContainer::NoColorKey); ARX_INTERFACE_DrawNumberInit(); initLightFlares(); ombrignon = TextureContainer::LoadUI("graph/particles/ombrignon"); - TC_fire = TextureContainer::LoadUI("graph/particles/fire"); - TC_fire2 = TextureContainer::LoadUI("graph/particles/fire2"); - TC_smoke = TextureContainer::LoadUI("graph/particles/smoke"); + TC_fire = TextureContainer::LoadUI("graph/particles/fire", TextureContainer::NoColorKey); + TC_fire2 = TextureContainer::LoadUI("graph/particles/fire2", TextureContainer::NoColorKey); + TC_smoke = TextureContainer::LoadUI("graph/particles/smoke", TextureContainer::NoColorKey); Boom = TextureContainer::LoadUI("graph/particles/boom"); arx_logo_tc = TextureContainer::LoadUI("graph/interface/icons/arx_logo_32");