Commit graph

4720 commits

Author SHA1 Message Date
Renato Machado
aaf175e3d3 update 2025-08-07 16:33:00 -03:00
Renato Machado
c5f7b3ed84 Merge branch 'main' into multithreading 2025-08-07 15:59:33 -03:00
Renato Machado
a45a0cdf1c cleanup 2025-08-07 14:22:49 -03:00
Renato Machado
4abdcd6287 Revert "improve: removed the first layer creation when instantiating TextureAtlas."
This reverts commit 24897a8ff1.
2025-08-07 13:51:27 -03:00
Hugo José Gonçalves
ea4bc401b1
fix: Prevent crash textedit (#1271) 2025-08-06 18:38:38 -03:00
LIBERGOD
40329dd257
feat: add title bar color customization for Windows (#1258) 2025-08-05 22:41:28 -03:00
Renato Machado
24897a8ff1 improve: removed the first layer creation when instantiating TextureAtlas. 2025-08-05 13:29:44 -03:00
Rodrigo Paixão
65c481b6a8
fix: "Clear Messages" functionality with readonly mode (#1268) 2025-08-03 21:49:21 -03:00
Renato Machado
9a11d6a1ab
cleanup: texture atlas 2025-08-03 21:48:50 -03:00
Renato Machado
d398b653d3 disable atlas in UI 2025-08-03 21:46:09 -03:00
Renato Machado
2554535785 fix: cached text 2025-08-03 17:50:50 -03:00
kokekanon
850233a4fd
fix: m_effects order (#1267) 2025-08-03 17:17:37 -03:00
Rodrigo Paixão
0d1e02bf5a
fix: text window like rl tibia 2025-08-03 17:17:20 -03:00
Renato Machado
7caf764ff5 init 2025-08-03 16:40:37 -03:00
Renato Machado
104dcd0578 perf: getSpriteImage with buffered reading and split write paths
Adds buffered pixelDataSize reading, fast uint16_t parsing via readU16FromBuffer, and separates useAlpha/!useAlpha loops to minimize branching and improve performance.
2025-08-03 00:37:06 -03:00
Renato Machado
301d147e68
fix: texture render 2025-08-03 00:02:31 -03:00
Renato Machado
352defe5f4
perf: fast spriting loading
Refactored loadSpriteSheet and getSpriteImage for faster loading, fewer allocations, direct memory access, and more efficient pixel processing. Reduces memory usage and improves startup performance.
2025-08-02 17:25:40 -03:00
Renato Machado
ee455f3fb3
fix: sprite loading 2025-08-02 17:20:30 -03:00
Renato Machado
7630c87ca7 fix: draw image with clipRect in UI 2025-08-02 15:36:20 -03:00
Rodrigo Paixão
365818c66b
fix: container window like rl tibia (miniborder) (#1262)
* fix: container window like rl tibia (miniborder)

* Update container.otui

* Update skills.otui
2025-08-02 15:06:03 -03:00
kokekanon
357d15043b
fix: battlelist widget with Object Pool 2025-08-02 12:26:48 -03:00
Renato Machado
2e3cc3f0ee
improve: Texture Atlas
- Integrated font glyphs into texture atlas (reduces glBindTexture)
- Fixed foreground smoothing (UI/2D rendering)
- Refactored and improved DrawPool logic and parallelism
- FPS is now more stable during high update rates
- Applied camera stabilization formula based on player speed

Closes #1134, #1031
2025-08-01 19:35:06 -03:00
kokekanon
dbe3815790
feat: protocol 14.00 ~ 14.12 packets and features (#1171)
* feature: packets + features 14.10 [NO FIX LOGIN]

* fix header by murilo | dudantas

* fix: old protocol 11.00 [g_game.enableFeature(GameHeader1400);]

fix: old protocol 11.00 [g_game.enableFeature(GameHeader1400);]

* test

* test

* clear

* clear

* revert me changes of  header protocol

* header -> feat: version 14 - 1173

Co-Authored-By: murilo09 <78226931+murilo09@users.noreply.github.com>
Co-Authored-By: Eduardo Dantas <eduardo.dantas@hotmail.com.br>

* clear

* format

* format

* format

* clear

---------

Co-authored-by: murilo09 <78226931+murilo09@users.noreply.github.com>
Co-authored-by: Eduardo Dantas <eduardo.dantas@hotmail.com.br>
2025-07-30 15:17:32 -03:00
Renato Machado
10d5d1b923 fix: init draw state (thx @patrykq112) 2025-07-29 16:30:31 -03:00
Renato Machado
6128655744 fix: rare crash with coords nullptr #1256 2025-07-29 15:54:27 -03:00
Renato Machado
229acff0f0 fix: alpha texture handling in atlas (thx @patrykq112) 2025-07-29 15:53:09 -03:00
Renato Machado
90c4d01221 fix: prevent crash in pool without texture atlas 2025-07-29 12:56:11 -03:00
Renato Machado
1d6fc873b1
Improve: Added Texture Atlas to Foreground and bug fixes 2025-07-28 22:34:18 -03:00
Renato Machado
6520a44eac Atlas disabled for now, will undergo a review. 2025-07-28 13:45:33 -03:00
Renato Machado
43e85698b3 Update textureatlas.cpp 2025-07-27 20:30:05 -03:00
Renato Machado
b177c51b4c
perf: Texture Atlas (#1252)
A Texture Atlas system was implemented on the client, resulting in a performance boost of 1.3x to 3x. For those not familiar with rendering, an atlas is essentially a large texture that combines multiple images used on screen, reducing texture switches and GPU communication overhead. The result? Stable FPS even with lots of objects and effects being rendered simultaneously.
2025-07-27 20:08:54 -03:00
kokekanon
cfc054dc05
fix: boundKeyPressCombos [fix: #1000, #1251 , #1231 , #738] (#1253) 2025-07-27 11:49:01 -03:00
André
710535dbd9
Fix Prey Actions (#1249)
Message was being send only when actionType equals to 4
2025-07-26 16:06:00 -03:00
Renato Machado
a6da2e0111 cleanup: GarbageCollection::thingType 2025-07-24 21:24:36 -03:00
Renato Machado
101e10cfa1
cleanup: event dispatcher 2025-07-24 16:34:01 -03:00
Rodrigo Paixão
fc9638b957
fix: console readonly tab now clears and closes correctly
- "Clear Messages" now works for any tab, not just the active one.
- Readonly panel is cleared and closed on relogin/character switch.
- Refactored clear logic to always target the correct tab and readonly state.
2025-07-24 14:37:46 -03:00
Rodrigo Paixão
5a22048316
fix: adjusted shop history display 2025-07-24 14:37:13 -03:00
Rodrigo Paixão
af16e605d6
fix: read-only tab (#1244) 2025-07-22 10:32:57 -03:00
Renato Machado
62549aae12 fix: ensure widget event property is updated if already registered 2025-07-20 14:48:04 -03:00
Rodrigo Paixão
d883e4a7c7
fix: game_shop negative balance (#1239) 2025-07-19 12:13:49 -03:00
Marcin Jałocha
0faf8b94d7
fix: properly animate items in outfits (#1241) 2025-07-19 11:53:44 -03:00
Renato Machado
5ef4b7e993
perf: replaced Mutex with Spinlock in Dispatcher and Draw Pipeline (#1238) 2025-07-19 11:51:58 -03:00
Renato Machado
efa7d89ce2
perf: replace mutex with atomic in async sprite loading and fix black tile issue
This update removes the use of `std::mutex` during asynchronous sprite loading and replaces it with an `std::atomic` variable to improve performance and reduce contention between threads.  
Additionally, a bug causing black tiles to appear due to synchronization issues has been identified and fixed.

## Changes
- Replaced `mutex` with `atomic` for concurrent sprite read access
- Improved performance and loading stability under high concurrency
- Fixed visual glitch where tiles were rendered black during async sprite access
2025-07-18 23:24:27 -03:00
Renato Machado
ad0f279511
improve: drawpool 2025-07-17 18:02:37 -03:00
kokekanon
5445d44261
fix: actions text send to current channel (#1228) 2025-07-10 17:28:25 -03:00
Jon Snow
44e0486d5d
fix: vBot analyzer button (#1223) 2025-07-08 10:36:21 -03:00
Victor
3817627ffe
fix: map resizing issue in extended view when toggling topmenu with Ctrl+Shift+T 2025-07-07 21:14:47 -03:00
Renato Machado
1c9e857c8f
improve: refactor things.lua to Controller System and add feature fallback logic for loadDat (#1224)
fix #1221
2025-07-07 19:35:28 -03:00
Renato Machado
85f8079f90 Revert "fix: map resizing issue in extended view when toggling topmenu with Ctrl+Shift+T (#1220)"
This reverts commit 5633d0e767.
2025-07-07 18:13:50 -03:00
Victor
5633d0e767
fix: map resizing issue in extended view when toggling topmenu with Ctrl+Shift+T (#1220)
* Fix map resizing issue in extended view when toggling topmenu with Ctrl+Shift+T

Fixes an issue where the game map panel would not return to its original size after toggling the top menu visibility (Ctrl+Shift+T) in extended view mode.  
  
**Problem:**  
- In extended view mode, hiding the top menu would correctly expand the map  
- However, showing the top menu again would not restore the map to its proper size  
- This was caused by incorrect anchoring of the gameRootPanel  
  
**Solution:**  
- Modified hide() and show() functions in topmenu.lua to check for extended view mode  
- Ensures proper anchoring to topMenu.bottom when in extended view mode  
- Maintains backward compatibility with normal view mode
2025-07-07 14:52:19 -03:00