Ivan Savenko
cca4c0888c
In-memory assets generation
...
All assets generation (large spellbook, terrain animations, etc) are now
done in memory and used as it, without saving to disk.
This should slightly improve load times since there is no encode png /
decode png, and should help with avoiding strange bug when vcmi fails to
load recently saved assets.
If needed, such assets can be force-dumped on disk using already
existing console command
2025-01-30 22:21:38 +00:00
Ivan Savenko
c3fb76b56f
Offloaded xbrz upscaling to background threads
2025-01-21 21:15:21 +00:00
Ivan Savenko
391986e0ba
Moved image scaling & optimization logic to separate classes
2025-01-21 21:15:21 +00:00
Ivan Savenko
c9dd3dab5d
Fix loading of pre-scaled assets
2025-01-21 21:15:21 +00:00
Ivan Savenko
668bf63fc0
Remove access to internal surface of Canvas
2025-01-21 21:15:21 +00:00
Ivan Savenko
4a600a9d4c
Reworked image container classes for easier support of new features
2025-01-21 21:15:21 +00:00
Ivan Savenko
2ee5f2df02
Merge pull request #5295 from IvanSavenko/bugfixing
...
[1.6.4] Bugfixing for recently reported issues
2025-01-21 15:50:02 +02:00
Ivan Savenko
82b81a7853
Added better error reporting for unclear crashes
2025-01-19 12:39:22 +00:00
Ivan Savenko
364286e1b9
Merge pull request #5287 from Laserlicht/xbrz_fix
...
[1.6.x] fix canvas fillTexture
2025-01-18 15:38:14 +02:00
Laserlicht
24a39a8b48
clear generated assets only on client
2025-01-17 19:27:33 +01:00
Laserlicht
604c466ebd
fix canvas fillTexture
2025-01-17 01:23:14 +01:00
Laserlicht
eb319fc15e
show building names with ALT
2024-12-26 14:22:12 +01:00
Ivan Savenko
2be528ae36
Merge pull request #4999 from MichalZr6/frames_from_def
...
Fix crash on missing DEF frames for in-game assets
2024-12-21 15:44:25 +02:00
Ivan Savenko
19e6a83c19
Quick workaround for xbrz terrain animations bug
2024-12-19 13:43:38 +00:00
Ivan Savenko
03b7622a1d
Fix positioning of scaleable main menu when xbrz is in use
2024-12-18 22:04:15 +00:00
MichalZr6
f4a15a198b
Cleanup
2024-12-15 21:32:23 +01:00
MichalZr6
81e29d6ce2
Return built in default image
2024-12-15 11:43:39 +01:00
MichalZr6
5fc61df717
fix_crash_loading_frames_from_def
2024-12-15 11:43:39 +01:00
Ivan Savenko
0842ada1c7
Quick fix for xbrz scaling artifacts on window borders
2024-12-10 14:20:55 +00:00
Laserlicht
4b103fd63b
code review
2024-12-05 23:31:03 +01:00
Laserlicht
6795c9afb6
animations working
2024-11-30 15:44:09 +01:00
Laserlicht
3967c70bf2
fix image creation
2024-11-30 15:03:58 +01:00
Laserlicht
9c0aef6ca2
write json
2024-11-30 13:53:50 +01:00
Laserlicht
1c715e39ba
fix image generation
2024-11-30 13:01:33 +01:00
Laserlicht
443bcf6d50
fix
2024-11-30 03:46:45 +01:00
Laserlicht
bda4efa8b5
gen sprites
2024-11-30 03:45:31 +01:00
Laserlicht
4c7e3644bb
gen sprites
2024-11-30 03:45:15 +01:00
Ivan Savenko
2b692c2606
Fix h3 bug: icons of View Earth and View Air are swapped
2024-11-24 19:26:06 +00:00
Ivan Savenko
251155d913
More robust management of body/shadow/overlay split
2024-11-17 17:54:55 +00:00
Ivan Savenko
7f0cb6ce6a
ISharedImage is now always const, remove creation of image copy when
...
upscaling to same factor
2024-11-16 15:40:05 +00:00
Ivan Savenko
98a54b61b7
Merge pull request #4874 from Laserlicht/load_prescaled
...
prescaled image support
2024-11-16 17:28:37 +02:00
Laserlicht
9c55ebf2dd
chronicles campaign screen
2024-11-11 22:25:54 +01:00
Laserlicht
11b437db62
prescaled image support
2024-11-03 20:27:11 +01:00
Ivan Savenko
604e3b5c67
Merge pull request #4763 from IvanSavenko/herohandler_split
...
Split CHeroHandler.cpp/.h into 1 file per class
2024-10-14 19:05:48 +03:00
Ivan Savenko
10ad0fc760
Split CHeroHandler.cpp/.h into 1 file per class
...
All parts of CHeroHandler.cpp are now in lib/entities/hero
Adjusted includes to use new paths
No functionality changes
2024-10-13 14:01:09 +00:00
Ivan Savenko
a8e84c55f6
Fix some of the new warnings from sonarcloud
2024-10-11 10:45:29 +00:00
Ivan Savenko
e442e71ed9
Fix handling of autoselected interface scaling by client
2024-10-09 17:37:54 +00:00
Laserlicht
be31041a48
"general" -> "interface"
2024-10-01 16:09:22 +02:00
Laserlicht
844b078482
color shift parameter to config
2024-09-30 19:46:53 +02:00
Ivan Savenko
87274128e7
Proper support for usage of multiple fonts in a chain
2024-09-24 10:59:35 +00:00
Ivan Savenko
5502dcaea4
Remove no longer used support for original version of Chinese fonts
2024-09-23 15:46:12 +00:00
Ivan Savenko
248cff49a4
Moved fonts handling from Graphics to RenderHandler class
2024-09-23 15:43:11 +00:00
Ivan Savenko
aa55977de2
Merge pull request #4617 from Laserlicht/asset_gen_missing
...
AssetGenerator: missing assets for generateAll
2024-09-18 15:43:11 +03:00
Laserlicht
fd1f1001c5
fix draw color
2024-09-18 00:09:09 +02:00
Laserlicht
c8f8a3fb6d
missing asset for generateAll
2024-09-17 23:03:30 +02:00
Ivan Savenko
4abd96dba4
Add debug code to save every loaded image to a file
2024-09-13 12:26:31 +00:00
Ivan Savenko
66a2c8dc37
add ImageLocator::toString
2024-09-12 21:22:41 +00:00
Ivan Savenko
2d08e18f6a
Implemented generation of combat unit number window for xbrz mode
2024-09-12 21:22:41 +00:00
Ivan Savenko
915533ed2e
Implemented generation of player-colored version of DiBoxBck
2024-09-12 21:22:41 +00:00
Ivan Savenko
dfd3f0c1a6
Fixed generation of upscaled spellbook
2024-09-12 21:22:41 +00:00