/[libvob]/libvob/bench/vob/text/overhead.py
ViewVC logotype

Diff of /libvob/bench/vob/text/overhead.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by tjl, Wed Mar 19 05:44:53 2003 UTC revision 1.2 by tjl, Fri Mar 21 09:42:51 2003 UTC
# Line 24  def benchScene(vs, Line 24  def benchScene(vs,
24      alph = 2*alph[:len(alph)]      alph = 2*alph[:len(alph)]
25    
26      coords = []      coords = []
27      print locals()  #     print locals()
28      for i in range(0, multics * nitems + (1-multics)):      for i in range(0, multics * nitems + (1-multics)):
29          cs = 0          cs = 0
30          for j in range(0, csdepth):          for j in range(0, csdepth):
31              cs = vs.orthoCS(cs, str((i,j)), 0, 0, 0, 1.01, 1.01)              cs = vs.orthoCS(cs, str((i,j)), 0, 0, 0, 1.01, 1.01)
32          coords.append(cs)          coords.append(cs)
33    
34        print len(coords)
35    
36      textvob = vob.vobs.TextVob(vob.GraphicsAPI.getInstance().getTextStyle("foo",0,10),      textvob = vob.vobs.TextVob(vob.GraphicsAPI.getInstance().getTextStyle("foo",0,10),
37                      alph[0:nletters], 0)                      alph[0:nletters], 0)
38    
39      for i in range(0, nitems):      if batchstartcode:
40          cs = coords[i % len(coords)]          vs.map.put(textvob.getStartCode())
41          vs.map.put(textvob, cs)          for i in range(0, nitems):
42                cs = coords[i % len(coords)]
43                vs.map.put(textvob.getPlainRenderableForBenchmarking(), cs)
44            vs.map.put(textvob.getStopCode())
45    
46        else:
47            for i in range(0, nitems):
48                cs = coords[i % len(coords)]
49                vs.map.put(textvob, cs)
50    
51            
52  args = {  args = {
53      "nletters" : (0, 10, 20, 30)  #    "nitems": (0, 100, 200),
54        "csdepth" : (1, 20),
55        "nletters" : (0, 20),
56    #    "multics": (0, 1),
57        "batchstartcode": (0, 1),
58  }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26