Author Topic: FS Dev Studio Update  (Read 3704 times)

0 Members and 1 Guest are viewing this topic.

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
Well i have the syntax highlighting table editor working



the only problem is it's slow as molassis in january on large files - i cannot find a fast was of performing it - no way of getting only the visible range, not to mention to good way to catch all screen changes

I cannot optimize my function any further - it's the underyling wxWindows calls that are slowing **** down.


Maybe i should ***** to them and in future releases get it speed up
« Last Edit: October 28, 2003, 02:45:29 pm by 30 »
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

"The Mountains are calling, and I must go" - John Muir

 

Offline FreeTerran

  • Master of the apocalypse
    Reset count: 1
  • 210
:( a red X
Silva in lumine Lunae arcana est. Domos mea Silva in lumine Stellarum est.

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
helps to upload the image..
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

"The Mountains are calling, and I must go" - John Muir

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Can you lvlshot that pic please Kazan? Oh and ask Tolwyn if he minds you giving his ICQ number away? :lol:

Looks good so far though. Hope you find a way to speed it up cause I'm definately waiting for this with baited breath.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline KARMA

  • Darth Hutt
  • 211
    • http://members.fortunecity.com/aranbanjo
ehy that's a truely nice idea:)

 

Offline mikhael

  • Back to skool
  • 211
  • Fnord!
    • http://www.google.com/search?q=404error.com
out of curiosity, could you write a custom version of he wx widget that reported viewable range?
[I am not really here. This post is entirely a figment of your imagination.]

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
actually that's my ICQ number

mikhael - not familiar with wx widget - i am new to wxWindows but i like what i see thus far
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

"The Mountains are calling, and I must go" - John Muir

 

Offline mikhael

  • Back to skool
  • 211
  • Fnord!
    • http://www.google.com/search?q=404error.com
well, by wxWidget, I mean the wxWindows widget you're using for the edit display. at some point, it must keep track of how big the display area is, and the offset into the edit buffer where the display starts (I'm guessing here, I've not started working with wxWin yet myself. Its on the to do list). If the current version won't tell you those things, you can probably write wx$Control-Kazan that does, and that might help.

On the other hand, when we're talking about dog slow, how dog slow are we talking here?
[I am not really here. This post is entirely a figment of your imagination.]

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Quote
Originally posted by Kazan
actually that's my ICQ number


Doh! I use Trillian all the time too! :)
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
none of the classes that wxTextCtrl are derived from have an intelligent way of determining the first visible line in the text control (if i want to do this i have to violating portability and use direct win32 calls) and there is no way to intelligently tell the last visible line - and there is no effective way of catching every visibility range change currently


i guess i could brute force it with a wxTimer and compairing the last visible first line before with the currently last visible first line - and then add something like 75 to it for last line (my screen can exceed 50 lines visible - but not 75 and im wrunning 1600x1200)
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

"The Mountains are calling, and I must go" - John Muir

 

Offline mikhael

  • Back to skool
  • 211
  • Fnord!
    • http://www.google.com/search?q=404error.com
That bites. You'd think that there would be an accessor for the general range of visible lines in a text control.

I say rewrite wxTextCtrl and submit a patch. ;)
[I am not really here. This post is entirely a figment of your imagination.]

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
you know how much of a ***** that would be... oui
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

"The Mountains are calling, and I must go" - John Muir

 

Offline mikhael

  • Back to skool
  • 211
  • Fnord!
    • http://www.google.com/search?q=404error.com
Yeah. Doom.

I wonder how stuff like ConTEXT (though that's written in Delphi) or the other various editors do context highlighting so fast.
[I am not really here. This post is entirely a figment of your imagination.]

 

Offline Setekh

  • Jar of Clay
  • 215
    • Hard Light Productions
Lookin' good, Kazan.
- Eddie Kent Woo, Setekh, Steak (of Steaks), AWACS. Seriously, just pick one.
HARD LIGHT PRODUCTIONS, now V3.0. Bringing Modders Together since January 2001.
THE HARD LIGHT ARRAY. Always makes you say wow.

 
erm, wouldn't it be possible to do this at load, and at an edit, only for the edited line?

/me stupid n00b, /me only knows QB
just another newbie without any modding, FREDding or real programming experience

you haven't learned masochism until you've tried to read a Microsoft help file.  -- Goober5000
I've got 2 drug-addict syblings and one alcoholic whore. And I'm a ****ing sociopath --an0n
You cannot defeat Windows through strength alone. Only patience, a lot of good luck, and a sledgehammer will do the job. --StratComm

 

Offline mikhael

  • Back to skool
  • 211
  • Fnord!
    • http://www.google.com/search?q=404error.com
That's actually a good point. Does wxTextCtrl let you screw about arbitrarily with the current line? Does it at least expose the address of the current line so that you can work with it?
[I am not really here. This post is entirely a figment of your imagination.]

 

Offline Goober5000

  • HLP Loremaster
  • 214
    • Goober5000 Productions
Yeah; if that's the case, you could just go an arbitrary number of lines up and down from the current line.

 

Offline Gloriano

  • silver dracon
  • 210
  • Oh
looks good:yes: :yes: :)
You must have chaos within you to give birth to a dancing star.- Nietzsche

When in despair I remember that all through history the way of truth and love has always won; there have been tyrants and murderers, and for a time they can seem invincible, but in the end they always fall.- Mahatma Gandhi

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
ok - instead of dealing with all kinds of **** in autohighlight - i added "Highlight" to the right-click menu .. it'll process the entire document at once and show a progress bar
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

"The Mountains are calling, and I must go" - John Muir

  

Offline Flipside

  • əp!sd!l£
  • 212
Well, I'm going to copy ad paste my comments from the original idea post to here, just in case it was missed :)

One thing that would be nice is a bit more flexibility to the table editor, so you could, for example, create a ship table entry using a form, and then the program would insert it into ships.tbl at a specified point (By species/role), the same would also be good for other tables as well, though it would take a more 'aware' parser, which is more work for Kazan, who already seems rushed off his feet. I suppose the best part of this would be if the 'insert' info was saveable, so you could save a single table entry, and just run it through the program to insert it into someone elses tables. This would be great for Modders working on projects who are trying to keep their tables in order
Another nice idea would be 'Replace this item with original'. This way you could choose a ship or weapons etc that you have altered and the program could replace it with the original from the .tbl. I am sure we have all tweaked a ship but not wanted to replace the whole table again when we have finished, just a glorified cut&paste, but useful

Flipside :D