Commit Graph
3627 Commits
Author SHA1 Message Date
Liu c844045b30 docs: add AGENTS.md 2026-05-20 23:44:43 +08:00
Liu 19cb29a9b7 feat(app): add lcui_request_frame and animation timer driver 2026-05-20 23:44:17 +08:00
Liu d6fdae1feb fix(app): replace steptimer-based render throttle with interval gate
Fullscreen transitions and other prolonged pauses caused left_over_time
to accumulate in StepTimer's fixed-step catch-up loop, triggering
dozens of render+present calls in a single event dispatch and freezing
the UI for seconds.

Replace the StepTimer with a simple minimum-interval gate so that
two consecutive renders are always at least 1000/rate_cap ms apart.
FPS is now counted from actually rendered frames rather than tick
calls. The lcui_app_set_frame_rate_cap and lcui_app_get_fps
signatures are unchanged.
2026-05-20 22:32:59 +08:00
Liu a0a1669176 fix(ptk): initialize steptimer last_time to wall clock
The first call to ptk_steptimer_tick observed a huge delta because
last_time was zero-initialized. In fixed-step mode this caused the
handler to be invoked hundreds of times in a single tick.

- Set last_time to get_time_ms() in ptk_steptimer_init.
- Remove the duplicate is_fixed_time_step assignment.
- Drop the unused frequency field; LCUI uses millisecond time base
  and never read it.
- Document in the header that StepTimer is intended for
  animation/simulation timing, not render throttling.
- Add test_steptimer covering init timing, variable-step,
  fixed-step catch-up, and max_delta clamping.
2026-05-20 22:32:52 +08:00
copilot-swe-agent[bot]andlc-soft 1beafdfd5b refactor: convert pd_image_readers to fixed-index array, O(1) get_methods
Agent-Logs-Url: https://github.com/lc-soft/LCUI/sessions/31fedd8b-88fb-48dd-b055-303325c02c73

Co-authored-by: lc-soft <1730073+lc-soft@users.noreply.github.com>
2026-04-29 22:25:53 +08:00
Liu e873c47216 refactor(ui): change image event listener return types to bool 2026-03-31 21:20:28 +08:00
Liu ded5f84022 fix(ui): memory leak and division by zero error 2026-03-31 21:20:28 +08:00
Liu c4895a3efb fix(ui): cannot set css shorthand property 2026-03-31 21:20:28 +08:00
Liu f07b06d154 refactor(css): const css_propdef_t * 2026-03-31 21:20:28 +08:00
rewine cf23a967bb fix(ptk): fix window size constraints mapping 2026-03-31 21:20:02 +08:00
Liu db2aaf8e26 build(deps): update xmake-requires.lock 2025-08-16 12:29:26 +08:00
Liu 06a958eda4 fix(ui): clear implicit conversion warnings 2025-08-16 11:22:29 +08:00
Liu a69f2b1bd7 feat(ptk): add Windows implemention for clipboard 2025-08-16 11:18:51 +08:00
Liu d3197db425 fix(ptk): ignore special characters entered with Ctrl key combination 2025-08-16 11:18:51 +08:00
Liu a9ab79a338 fix(ptk): request text failed when clipboard content is empty (#318) 2025-08-16 11:18:51 +08:00
Liu ae9b228f48 fix(ptk): incorrect window minmaxinfo 2025-04-30 18:54:20 +08:00
Liu 1de2dfd62c fix: delay refresh window to use the latest size of widget 2025-04-16 00:16:38 +08:00
Liu aa3326b448 ci: update configure step 2025-04-16 00:16:30 +08:00
Liu 53c5ce216f test: update function name 2025-04-16 00:16:30 +08:00
Liu 91895a0b19 chore(pandagl): update logger level 2025-04-16 00:16:30 +08:00
Liu c4d03a72b3 docs: update FUNDING.yml 2025-04-02 23:07:37 +08:00
Liu ce12dd4936 docs: delete TOC to avoid editor inserting incorrect content 2025-04-02 23:07:37 +08:00
Liu 6233b9d7d4 docs: Chat GPT -> AI 2025-04-02 23:07:37 +08:00
Liu cb442a8ca4 docs: update tutorial list 2025-04-02 23:07:37 +08:00
rewine 60fe643058 fix: make fontconfig work again 2025-03-14 10:16:22 +08:00
rewine 8f205eca97 fix: format-overflow error in gcc 14
log:
format-overflow 从 gcc 14 开始被视为`错误`而非`警告`
> error: lib/css/src/library.c:448:41: 错误:‘sprintf’ may write a terminating nul past the end of the destination [-Werror=format-overflow=]
>  448 |                 sprintf(fullname, "%s %s", link->group->name, selector);
>      |

参考:
https://stackoverflow.com/questions/73769693/how-to-fix-warning-sprintf-swriting-a-termination-nul-past-the-end-ot-the-dest
2025-03-04 10:27:13 +08:00
Liu d6d08c7330 chore: update copyright year 2025-01-26 18:55:58 +08:00
Liu f56f3d1aad docs: update FAQ 2025-01-12 16:08:37 +08:00
Liu 2e0f157f3d docs: update change log v3.0.0-alpha.0 2025-01-10 23:42:12 +08:00
Liu 9510e2c2ef style: format code and delete unused files 2025-01-06 23:14:33 +08:00
Liu 940a0fc33a chore: update copyright 2025-01-05 23:29:56 +08:00
Liu 4ad7d8a4fb feat: font alias 2025-01-05 23:08:45 +08:00
Liu 3b658cd646 docs: move out documents 2024-12-29 23:37:25 +08:00
Liu c73659e2c0 ci(github): remove invalid cache config 2024-12-29 23:37:24 +08:00
Liu 24f3192b9a refactor: update LCUI's dependencies on ui-widgets and ui-router 2024-12-29 23:37:24 +08:00
Liu ee687728e6 docs: update README 2024-12-26 00:20:09 +08:00
Liu cfa605110e style: add BOM header 2024-12-23 00:02:48 +08:00
Liu 5a866286c5 style: clear uninitialized warnings 2024-12-22 23:17:11 +08:00
Liu 8dfde9ddd1 chore: update lib/yutil 2024-12-22 23:17:02 +08:00
Liu 5a4f39252b ci(github): update installation command for linux 2024-12-22 23:16:50 +08:00
Liu 91173755c0 chore: delete lcpkg.json 2024-12-22 23:14:13 +08:00
Liu 6851e9aef3 refactor: change type naming style 2024-12-22 23:14:13 +08:00
Liu 8e06b4eb05 ci(github): update xmake cache 2024-12-22 23:14:13 +08:00
Liu 518f206357 feat: update lib/yutil 2024-12-22 23:14:13 +08:00
Liu 5314ea61ac test: update tests 2024-12-22 23:14:13 +08:00
Liu 28203aa59c feat(ui-widgets): add ui_text_get_content_w() 2024-12-22 23:14:13 +08:00
Liu 9781ed85d2 feat: run the main worker's task after UI update
Ensure that the geometric properties of the elements used by the task callback function are the latest computed.
2024-12-22 23:14:13 +08:00
Liu 4f19df5c7a fix(ui): incorrect line-height calculation 2024-12-22 23:14:13 +08:00
Liu d1493e315d feat: new layout process 2024-12-22 23:14:13 +08:00
Liu 44ab3aeae6 feat(ui-widgets): add scrollarea 2024-12-07 13:30:31 +08:00