timadria / u8glib

Automatically exported from code.google.com/p/u8glib
Other
0 stars 0 forks source link

speed improvements #95

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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 commented 8 years ago
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 commented 8 years ago
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 commented 8 years ago
- 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 commented 8 years ago
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 commented 8 years ago
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 commented 8 years ago
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 commented 8 years ago
- 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 commented 8 years ago
- 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 commented 8 years ago
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