-
-
Notifications
You must be signed in to change notification settings - Fork 357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add FPS meter #192
Comments
@lc-soft has funded $15.00 to this issue.
|
@lc-soft has funded $10.00 to this issue.
|
Signed-off-by: Vasilyy Balyasnyy <v.balyasnyy@gmail.com>
Signed-off-by: Vasilyy Balyasnyy <v.balyasnyy@gmail.com>
Signed-off-by: Vasilyy Balyasnyy <v.balyasnyy@gmail.com>
Signed-off-by: Vasilyy Balyasnyy <v.balyasnyy@gmail.com>
@lc-soft has funded $10.00 to this issue.
|
Please wait a moment, just now I was thinking about finishing this work when I have time in the future. |
- Add API for retrieving and modifying global settings - Utilize this API in the codebase - Add event for when global settings are changed - Add event handler for updating the frame rate cap Fixes lc-soft#192
- Add API for retrieving and modifying global settings - Utilize this API in the codebase - Add event for when global settings are changed - Add event handler for updating the frame rate cap - Add event handler to notify paint flashing changes Fixes lc-soft#192
- Add API for retrieving and modifying global settings - Utilize this API in the codebase - Add event for when global settings are changed - Add event handler for updating the frame rate cap - Add event handler to notify paint flashing changes Fixes lc-soft#192
The description of this issue needs to be updated. I plan to redesign the requirements of this feature in the future, so please do not consider working on this issue for the time being. Moreover, $100 has exceeded my budget. |
BREAKING CHANGE: LCUIDisplay_EnablePaintFlashing() has been removed. - Add API for retrieving and modifying global settings - Utilize this API in the codebase - Add event for when global settings are changed - Add event handler for updating the frame rate cap - Add event handler to notify paint flashing changes - Add unit tests Fixes lc-soft#192
BREAKING CHANGE: LCUIDisplay_EnablePaintFlashing() has been removed. - Add API for retrieving and modifying global settings - Utilize this API in the codebase - Add event for when global settings are changed - Add event handler for updating the frame rate cap - Add event handler to notify paint flashing changes - Add unit tests Fixes lc-soft#192
BREAKING CHANGE: LCUIDisplay_EnablePaintFlashing() has been removed. - Add API for retrieving and modifying global settings - Utilize this API in the codebase - Add event for when global settings are changed - Add event handler for updating the frame rate cap - Add event handler to notify paint flashing changes - Add unit tests Fixes lc-soft#192
BREAKING CHANGE: LCUIDisplay_EnablePaintFlashing() has been removed. - Add API for retrieving and modifying global settings - Utilize this API in the codebase - Add event for when global settings are changed - Add event handler for updating the frame rate cap - Add event handler to notify paint flashing changes - Add unit tests Fixes lc-soft#192
BREAKING CHANGE: LCUIDisplay_EnablePaintFlashing() has been removed. - Add API for retrieving and modifying global settings - Utilize this API in the codebase - Add event for when global settings are changed - Add event handler for updating the frame rate cap - Add event handler to notify paint flashing changes - Add unit tests Fixes lc-soft#192
BREAKING CHANGE: LCUIDisplay_EnablePaintFlashing() has been removed. - Add API for retrieving and modifying global settings - Utilize this API in the codebase - Add event for when global settings are changed - Add event handler for updating the frame rate cap - Add event handler to notify paint flashing changes - Add unit tests Fixes lc-soft#192
BREAKING CHANGE: LCUIDisplay_EnablePaintFlashing() has been removed. - Add API for retrieving and modifying global settings - Utilize this API in the codebase - Add event for when global settings are changed - Add event handler for updating the frame rate cap - Add event handler to notify paint flashing changes - Add unit tests Fixes lc-soft#192
BREAKING CHANGE: LCUIDisplay_EnablePaintFlashing() has been removed. - Add API for retrieving and modifying global settings - Utilize this API in the codebase - Add event for when global settings are changed - Add event handler for updating the frame rate cap - Add event handler to notify paint flashing changes - Add unit tests Fixes lc-soft#192
BREAKING CHANGE: LCUIDisplay_EnablePaintFlashing() has been removed. - Add API for retrieving and modifying global settings - Utilize this API in the codebase - Add event for when global settings are changed - Add event handler for updating the frame rate cap - Add event handler to notify paint flashing changes - Add unit tests Fixes lc-soft#192
I think issue #192 is much simpler than issue #210, because the workload of issue #210 is more than 10 times that of issue #192, but from your bounty request, the workload of issue #192 seems to be larger than I expected. Does this mean Are you planning to make a lot of changes to related code for issue #192? |
It's mostly the comment "Note: This work requires many reviews and changes to meet the author's expectations." that made me decide to up the bounty on this one from the original $100 I had put up. It was a bit open-ended. |
@lc-soft has funded $6.10 to this issue.
|
@lc-soft has funded $144.00 to this issue.
|
@jduo I have increased the bonus from $35 to $185.10, and you can start doing it. |
There are three fees in payment, reward and withdrawal: stripe fee (3.74%), service fee (10%), transaction fee (3.6%), I think the fees charged are too much. |
I've started work on this. A few questions:
|
|
Do you mean the number of bars in the chart? I suggest that you calculate the appropriate number of bars based on the width of the chart, for example: number_of_bars = bar_chart.width / bar_width;
I have written a spinner widget based on canvas widget before, you can refer to it: The core code is as follows:
Yes, you only need to refer to the style of the bar in the gif, no need to pay attention to the update speed.
Yes.
I suggest using a linked list to save the frame count, the pseudo code is as follows: LinkedList frameCountList;
// insert new frame count into head
frameCountList.unsift(currentFrameCount);
if (frameCountList.length > maxLen) {
// delete last frame count
frameCountList.pop();
}
I think it's okay, but I want the names of these three widgets to have the |
Would bar_width be fixed then? Or would it scale with the size of the window? |
|
In your example showing CSS/HTML at https://codepen.io/lc-soft/pen/NWxYpGv?editors=1100 |
@jduo Yes, you can use this css code directly and make the widget tree structure the same as the html code. |
This comment has been minimized.
This comment has been minimized.
@jduo I thought about it, you can use a fixed width for bar. because there is no need to make the width of the bar scalable, in order to adapt to the large size, we can increase the number of bars instead of increasing the bar width. |
Hi @lc-soft , Quick question, does LCUI create a relationship between CSS properties and struct fields for widgets? Or is that part of the widget implementation? |
There is no English version of this tutorial, and I will replace the tutorial link with https://docs.lcui.lc-soft.io/.
Check here: LCUI/include/LCUI/gui/widget_base.h Lines 287 to 302 in 6656f40
The stylesheet of the widget will be updated here: Lines 203 to 215 in 029984e
CSS properties will be recalculated when they change and their actual values will be saved in Lines 175 to 196 in 029984e
|
Hi @lc-soft , I got sidetracked for a bit. Plan to come back to this issue next week. |
OK, If you think this project has some incomprehensible code, please feel free to ask me. |
Hi don't know if I can do this, but is this still available? |
@interdice It is temporarily unavailable because the new version under development has many changes, and it needs to wait until the new version is released. |
@lc-soft has cancelled funding for this issue.(Cancelled amount: $144.00) See it on IssueHunt |
@lc-soft has cancelled funding for this issue.(Cancelled amount: $6.10) See it on IssueHunt |
@lc-soft has cancelled funding for this issue.(Cancelled amount: $10.00) See it on IssueHunt |
1 similar comment
@lc-soft has cancelled funding for this issue.(Cancelled amount: $10.00) See it on IssueHunt |
@lc-soft has cancelled funding for this issue.(Cancelled amount: $15.00) See it on IssueHunt |
Is your feature request related to a problem? Please describe.
We need a graphical user interface to display the current rendering state to debug performance issues.
Describe the solution you'd like
Refer the Chrome Browser:
This is the list of requirements:
Additional context
How to draw a chart?
You need these:
for (x = 0; i < fps_data_length; ++x)
I believe you have guessed the implementation method through these keywords.
What does it look like?
I have written css and html code, you can refer to it:
https://codepen.io/lc-soft/pen/NWxYpGv?editors=1100
The effect of the bar chart should be the following:
https://darsa.in/fpsmeter/
IssueHunt Summary
Backers (Total: $0.00)
Become a backer now!
Or submit a pull request to get the deposits!
Tips
The text was updated successfully, but these errors were encountered: