MantisBT - VCMI
View Issue Details
0002456VCMIGUI - Town screenpublic2016-08-12 18:422022-04-12 10:47
misiokles 
AVS 
lowminoralways
closedsuspended 
PCWindows10
0.98g 
0.99 
0002456: Noticeable game lag during playing mod with better graphic
There's one (not finished unfortunatelly) mod called 'necro-mod'. Mod add new Necropolis using graphics from HoMM 5. Author decided not to make defs file (and loose graphics quality) but instead make a json list of png files to replace frames in appropiate defs. And that's ok, lists of such graphics work, but... when I'm in town screen - game starts to lag. Question is - it's because of better graphic or bad made mod? My PC is rather old: Intel Core2Duo [email protected] GHz 2.27 GHz, 2 GB RAM, GeForce 9300M GS.
Link to necro-mod:
http://www.mediafire.com/download/furh39x98fpd4lv/Nowa+Nekropolia.rar [^]
Download and install necro-mod.
Launch game and choose Necrotown as starting town.
Go to town screen.
No tags attached.
Issue History
2016-08-12 18:42misioklesNew Issue
2016-08-12 18:42misioklesStatusnew => assigned
2016-08-12 18:42misioklesAssigned To => Ivan
2016-08-13 13:20AVSAssigned ToIvan =>
2016-08-13 13:20AVSAssigned To => AVS
2016-08-13 13:20AVSStatusassigned => new
2016-08-13 13:20AVSAssigned ToAVS =>
2016-08-13 13:41AVSNote Added: 0006554
2016-08-13 13:42AVSNote Added: 0006555
2016-08-13 13:42AVSStatusnew => resolved
2016-08-13 13:42AVSFixed in Version => 0.99
2016-08-13 13:42AVSResolutionopen => suspended
2016-08-13 13:42AVSAssigned To => AVS
2016-08-13 13:52AVSNote Added: 0006556
2016-08-13 13:52AVSNote Edited: 0006556bug_revision_view_page.php?bugnote_id=6556#r3205
2016-08-13 16:10misioklesNote Added: 0006557
2016-08-13 16:51AVSNote Added: 0006558
2016-08-13 17:00AVSNote Added: 0006559
2022-04-12 10:47PovelitelStatusresolved => closed

Notes
(0006554)
AVS   
2016-08-13 13:41   
This need testing and profiling. At first glance there are problems both with mod and vcmi.

vcmi do not use GPU acceleration for now so it will lag with heavy graphics any way, but this mod has ridiculous graphics especially in town screen
1) (!)64bpp - I do not even a monitor to display such quality
2) (!!!) buildings have full-screen-size sprite with 90% transparent pixels.

However some graphics is being optimized, so we should wait until mod release.
(0006555)
AVS   
2016-08-13 13:42   
resolving as suspended for now, feel free to reopen with new mod release
(0006556)
AVS   
2016-08-13 13:52   
One more comment

Here is how

Content\config\NecroTown\structures.json"

look like now

---
"building0":{ "animation" : "NecroTown/town-screen/buildings/MG/MG1", "x" : 0, "y" : 0, "z" : 1,
---

all buildings have x,y = 0,0

when they will have something more optimal we should take a look once more.

(0006557)
misiokles   
2016-08-13 16:10   
It's seems that Silaneo, author of this mod, has abandoned it (and HoMM scene as well) because he doesn't answer messages and mod is two years old. So I'll do my best to make mod more thinner (in september, when I have more spare time!). I know this mod is dark (and ugly) but maybe it will be tutorial for another modders how to make mod with better (32-bit) graphics.
And buildings with x,y = 0,0 coordinates are comfortable for modders - they must not seek blindly proper coordinates. Authors of Preserve/Asylum did that and their mods work smoothly :)
(0006558)
AVS   
2016-08-13 16:51   
def files have margins so actual image can be not full-screen.
(0006559)
AVS   
2016-08-13 17:00   
Anyway blitting with key colour is faster than with alpha channel.