Skip to content
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

speed improvements #95

Closed
GoogleCodeExporter opened this issue Mar 23, 2015 · 9 comments
Closed

speed improvements #95

GoogleCodeExporter opened this issue Mar 23, 2015 · 9 comments

Comments

@GoogleCodeExporter
Copy link

Add
    case U8G_DEV_MSG_IS_BBX_INTERSECTION:
      return u8g_pb_IsIntersection(pb, (u8g_dev_arg_bbx_t *)arg);
to the devices
This is probably the most often called procedure, so moving it up, will improve 
speed

Original issue reported on code.google.com by olikr...@gmail.com on 23 Sep 2012 at 10:46

@GoogleCodeExporter
Copy link
Author

another idea: check if the calculated end state is identical to the requested 
next start.

Original comment by olikr...@gmail.com on 24 Sep 2012 at 8:59

@GoogleCodeExporter
Copy link
Author

more ideas:
- bbx check for DrawStr
- implement IsBBXIntersection as macro to IsBBXIntersetcionLL

Original comment by olikr...@gmail.com on 25 Sep 2012 at 5:00

@GoogleCodeExporter
Copy link
Author

- do intersection tests on top level, new msg: get_page_box, store result in 
u8g struct, move clip procedures into new file

Original comment by olikr...@gmail.com on 26 Sep 2012 at 7:00

@GoogleCodeExporter
Copy link
Author

introduced new message to return the page dimensions
added new file with more generic clip procedures

todo
- replace bbx with some special page struct, maybe box
  instead of x,y,h,w, use x0,x1, y0,y1
  --> better for clipping

Original comment by olikr...@gmail.com on 26 Sep 2012 at 7:05

@GoogleCodeExporter
Copy link
Author

bbx replaced with box

todo:
- all pb base progs need to support GET_PAGE_BOX
- update rotation procedures

Original comment by olikr...@gmail.com on 28 Sep 2012 at 8:52

@GoogleCodeExporter
Copy link
Author

todo
- all pb base progs need to support GET_PAGE_BOX
- update rotation procedures
- check if U8G_DEV_MSG_IS_BBX_INTERSECTION is obsolete, remove if ok
- pb8h1: finish work on the new pixel draw procedure

Original comment by olikr...@gmail.com on 29 Sep 2012 at 5:39

@GoogleCodeExporter
Copy link
Author

- all pb base progs need to support GET_PAGE_BOX --> DONE

ToDo
- speed improvements rotation procedures (get dimension from chained device)
- check if U8G_DEV_MSG_IS_BBX_INTERSECTION is obsolete, remove if ok
- pb8h1: finish work on the new pixel draw procedure

Original comment by olikr...@gmail.com on 29 Sep 2012 at 7:08

@GoogleCodeExporter
Copy link
Author

- speed improvements rotation procedures --> DONE
- check if U8G_DEV_MSG_IS_BBX_INTERSECTION is obsolete, remove if ok --> DONE
- pb8h1: finish work on the new pixel draw procedure --> reverted back to 
original code

Original comment by olikr...@gmail.com on 30 Sep 2012 at 2:12

@GoogleCodeExporter
Copy link
Author

conclusion
- move intersection test to toplevel, introduced U8G_DEV_MSG_GET_PAGE_BOX
- optimized intersection test (introduced decision tree)

Original comment by olikr...@gmail.com on 30 Sep 2012 at 2:22

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant