Go to advanced search

by charliedurrant
Tue Dec 18, 2012 8:31 pm
Forum: General discussion
Topic: Simon's accelerated X development thread
Replies: 405
Views: 145557

Re: Simon's accelerated X development thread

Simon, I've heard back from the team that maintain and develop TK/TCL and in summary they feel that processing power will catch up to make TK perform fast enough. I understand what they are saying as on (I expect) everything bar the PI it performs just fine and with any change there is risk and TK i...
by charliedurrant
Mon Dec 17, 2012 10:00 am
Forum: General discussion
Topic: Simon's accelerated X development thread
Replies: 405
Views: 145557

Re: Simon's accelerated X development thread

... in order to accelerate stuff like antialiased fonts (ie lots of small glyphs) where latency - but not throughput - is important. Simon, This will clearly help the tk library, I'm still waiting to hear back from the TK team, I'll chase but I don't like to push as at the end of the day it's peopl...
by charliedurrant
Fri Nov 30, 2012 5:11 pm
Forum: General discussion
Topic: Simon's accelerated X development thread
Replies: 405
Views: 145557

Re: Simon's accelerated X development thread

Re - libTK Ummm, things can certainly be done better but too much code needs to be refctored which with a well used library would be big risk. New so / dll at http://www.wilverley.com/other/libtk.zip 1) extract the contents to /usr/local/lib 2) ldconfig -v to update the shared object cache 3) start ...
by charliedurrant
Fri Nov 30, 2012 1:48 pm
Forum: Beginners
Topic: Kernel panic - not syncing : VFS: Unable to mount root fs on
Replies: 15
Views: 28381

Re: Kernel panic - not syncing : VFS: Unable to mount root f

I just got this too - mine was working fine last week so I can only assume it is the SD card.
by charliedurrant
Tue Nov 27, 2012 10:52 pm
Forum: General discussion
Topic: Simon's accelerated X development thread
Replies: 405
Views: 145557

Re: Simon's accelerated X development thread

Simon, I haven't dissapeared and thanks for the detailed reply. I suddenly decided to build a wheezy vm so I can match the pi install as close as possible. I've beeen making a right meal of it. I'll start on optiising it as sson as I can and digest what you have written. I need to also to talk to th...
by charliedurrant
Sun Nov 25, 2012 8:12 pm
Forum: General discussion
Topic: Simon's accelerated X development thread
Replies: 405
Views: 145557

Re: Simon's accelerated X development thread

Turning off the double buffering was an easy win - there is a lot more (well, some) that can be done in terms of optimising it . In reply: 1) If the code does double buffering would you own that buffer and would the calls be accelerated? I'm asking this as I don't know about the clipping region and ...
by charliedurrant
Sun Nov 25, 2012 1:22 am
Forum: General discussion
Topic: Simon's accelerated X development thread
Replies: 405
Views: 145557

Re: Simon's accelerated X development thread

Finally a libtk with double buffering off for testing: http://www.wilverley.com/other/libtk8.5.so.0.1.zip 1) download, extract and copy the file libtk8.5.so.0.1 to /usr/local/lib 2) ldconfig -v | grep libtk you should see libtk8.5.so.0.1 in the list 3) nano /usr/share/tcltk/tk8.5/tk.tcl comment the ...
by charliedurrant
Sat Nov 24, 2012 3:45 pm
Forum: General discussion
Topic: No crumb trail
Replies: 21
Views: 7542

Re: No crumb trail

+1 from me - since this is phpBB it is probably just a template update.
by charliedurrant
Fri Nov 23, 2012 11:33 pm
Forum: General discussion
Topic: Simon's accelerated X development thread
Replies: 405
Views: 145557

Re: Simon's accelerated X development thread

Simoin,

Are you using a cross compiler? I'm getting C compiler can not create executables when compiling libktk on the Pi itself (gcc v 4.7.2)?

Charlie
by charliedurrant
Fri Nov 23, 2012 5:34 pm
Forum: General discussion
Topic: Simon's accelerated X development thread
Replies: 405
Views: 145557

Re: Simon's accelerated X development thread

...some work to do as it doesn't compile without double buffering, I'll upload the so and install guide so you can test it.

Charlie
by charliedurrant
Fri Nov 23, 2012 4:23 pm
Forum: General discussion
Topic: Simon's accelerated X development thread
Replies: 405
Views: 145557

Re: Simon's accelerated X development thread

Simon, Took at look at TK again. Isn't the answer to turn off double buffering in TK? I say that as question to myself as I know you don't have the code, here is what is happening.... Double buffering on: (#define TK_NO_DOUBLE_BUFFERING=1) 1) Create a buffer the size of the area to draw called pixma...
by charliedurrant
Thu Nov 22, 2012 6:41 pm
Forum: General discussion
Topic: Simon's accelerated X development thread
Replies: 405
Views: 145557

Re: Simon's accelerated X development thread

Simon, All debugging and there is nothing obvious in IDLE. TK is compiled for double buffering (X and windows but not for the Mac though). If there are any 1 pixel draws then it must be in XFillRectangles - the ultimate function that fills rectangles. The only obvious enhancement is if you have to d...
by charliedurrant
Thu Nov 22, 2012 1:03 pm
Forum: General discussion
Topic: Simon's accelerated X development thread
Replies: 405
Views: 145557

Re: Simon's accelerated X development thread

So knowing this SONAME stuff, what was wrong with the code downloaded from the tk site? I'm not entirely sure without doing a diff on all files (another thing to learn). However, with further investigation, when you download the source from debian it comes with a debian/patch folder. In there is a ...
by charliedurrant
Thu Nov 22, 2012 10:59 am
Forum: General discussion
Topic: Simon's accelerated X development thread
Replies: 405
Views: 145557

Re: Simon's accelerated X development thread

Hooray! For any one who wishes to compile libtk you need to: 1) Get the source from the debian repositry - I mistakenly got the source from the tcl/tk site apt-get source tk8.5-dev 2) Shared objects have identifiers built into the in the elf header called SONAME. This is is very important! There are...
by charliedurrant
Wed Nov 21, 2012 1:18 pm
Forum: General discussion
Topic: Simon's accelerated X development thread
Replies: 405
Views: 145557

Re: Simon's accelerated X development thread

No worries, I'll get to the bottom of it - it's the best way to learn.
by charliedurrant
Wed Nov 21, 2012 12:39 am
Forum: General discussion
Topic: Simon's accelerated X development thread
Replies: 405
Views: 145557

Re: Simon's accelerated X development thread

Oh, and I'll try gdb tomorrow - thanks for the hint.
by charliedurrant
Wed Nov 21, 2012 12:38 am
Forum: General discussion
Topic: Simon's accelerated X development thread
Replies: 405
Views: 145557

Re: Simon's accelerated X development thread

One tiny difference, I'd missed out the threading configure switch to include threading. After recompiling and re-testing to see if idle loads (it didn't) the ldd reports are the same: ldd output for new libtk8.5.so.0 -------------------------------- linux-gate.so.1 => (0xb776e000) libpthread.so.0 =...
by charliedurrant
Tue Nov 20, 2012 10:35 pm
Forum: General discussion
Topic: Simon's accelerated X development thread
Replies: 405
Views: 145557

Re: Simon's accelerated X development thread

When I say I new to this I don't think I could be any more shiny. I've used linux for a few weeks in 15 years but I now have my debian VM running (should have gone with ubuntu) and tk is compiling ready for debugging. Even if I don't succeed I'm learning. Good work... Can you now debug through a Tk...
by charliedurrant
Tue Nov 20, 2012 1:54 am
Forum: General discussion
Topic: Simon's accelerated X development thread
Replies: 405
Views: 145557

Re: Simon's accelerated X development thread

Simon,

When I say I new to this I don't think I could be any more shiny. I've used linux for a few weeks in 15 years but I now have my debian VM running (should have gone with ubuntu) and tk is compiling ready for debugging. Even if I don't succeed I'm learning.

Charlie
by charliedurrant
Sun Nov 18, 2012 7:10 pm
Forum: General discussion
Topic: Simon's accelerated X development thread
Replies: 405
Views: 145557

Re: Simon's accelerated X development thread

Seems to route right down to the X call

XFillRectangles - of which I do not yet have the source.

I'll have to get it all debugging as I'm not old school enough to trace all this via a text editor. Clocking off now.

Charlie
by charliedurrant
Sun Nov 18, 2012 6:20 pm
Forum: General discussion
Topic: Simon's accelerated X development thread
Replies: 405
Views: 145557

Re: Simon's accelerated X development thread

Just s quick update re I.D.L.E drawing being slow: All the 'line of text' I.D.L.E drawing code is in tkTextDisp.c noteably the function: DisplayDLine(textPtr, dlPtr, prevPtr, pixmap) At first glance it looks fine at the tk Level, each line is drawn using the above function and I can't see any 1x1 b...
by charliedurrant
Sun Nov 18, 2012 4:55 pm
Forum: Beginners
Topic: Raspberry Pi- the saviour of Linux?
Replies: 29
Views: 7114

Re: Raspberry Pi- the saviour of Linux?

Ok, that's a deliberately mischievous headline Not really. Just an ill informed opinion headline from another ill informed noob! If windows is so great, why is it dying? How many windows phones are being sold? Tablets? SBC's running windows? If it wasn't for linux (which is going from strength to s...
by charliedurrant
Sun Nov 18, 2012 1:32 pm
Forum: General discussion
Topic: Simon's accelerated X development thread
Replies: 405
Views: 145557

Re: Simon's accelerated X development thread

Doh! IDLE's written in python! Not much debugging setup to do then - sorry :!:
by charliedurrant
Sun Nov 18, 2012 1:00 pm
Forum: General discussion
Topic: Simon's accelerated X development thread
Replies: 405
Views: 145557

Re: Simon's accelerated X development thread

Um....I'll start on it Monday & Tuesday evening. I have a lot to learn as I'm from a windows background so the debugging setup etc will take time.

That drawing method is slow. It's a good example of how much you can get away with nowadays due to fast processors.
by charliedurrant
Sun Nov 18, 2012 10:19 am
Forum: General discussion
Topic: Simon's accelerated X development thread
Replies: 405
Views: 145557

Re: Simon's accelerated X development thread

I posted at the same time as your reply. I'll take a look at the general rendering code in IDLE, I expect there will be no need to actually install the driver (if you think differently just say)

Charlie

Go to advanced search