Seite 2 von 3

Verfasst: 07.09.2007 14:42
von Fusselohr
Achso ok ^^.

Verfasst: 07.09.2007 14:49
von STARGÅTE
wenn mein Ordner mit den Sprites nicht großer als 10MB ist, dann brauchst es doch auch nicht mehr als 10MB in der GK oder ?

denn mein Geschwindigkeits verlust is immer so :

konstant 70 FPS, nun erweitere ich ein Text immer um ein Buchstaben:

70, 70, 70, 70, 69, 59, 52, 50, 50, 50, 50, 50, 50

Dabei wird aber kein neues Sprite erstellt, aber wie ist dieser starke abfall zu erklären ?

Verfasst: 07.09.2007 14:59
von Kaeru Gaman
hm...
also ich versteh nich ganz, wie du "erweitere ich ein Text immer um ein Buchstaben" meinst.

meinst du, du schreibst also insgesamt 1000, 1001, 1002, 1003, 1004, 1005, 1006.... buchstaben?

Verfasst: 07.09.2007 15:13
von STARGÅTE
jo so meine ich das:

erst werden 1000 Buchstaben Sprites displayt dann 1001 ....

Mein Beispiel ist etwas extrem, aber es ist wirklich so, das die Frame ab einer bestimmten anzahl von displayten Sprites ein Sprung macht

Es ist ja normal das lage 70 ist, da mein Bildschirm ja 70Hz hat, aber dann fällt es (vllt noch normal) das dann bleibt es ja wieder lange auf 50 bis dann zu dem Punkt kommt, wo es dann wirklich liniar abnimmt 50,45,40,35,30 ....

Verfasst: 07.09.2007 15:42
von Kaeru Gaman
also, das mit den 50 versteh ich nicht so ganz.

eigentlich wäre mir einleuchtender, wenn ab einer bestimmten auslastung sich die framerate schlagartig halbiert,
weil eben nicht mehr alles in einer phase dargestellt werden kann,
und deshalb bis zum zweiten VSync gewartet wird.

aber grundsätzlich ist das eben auch eine frage dessen, wie man programmiert.
nicht nur die sprite-anzeige oder das drawing kosten zeit, auch die ganzen berechnungen dahinter.
grad bei hundertfach clippen multiplizierst du dir nen wolf, deshalb sind einzelsprites vorzuziehen.

das mit der größe des graka-speichers hab ich auch nur erwähnt,
weil es eben bei zig vorbereiteten tooltips und full-window-overlays doch sehr schnell zum tragen kommt.

z.b. würde ich auch die Charset-Sprites in den Hauptspeicher packen,
und die einzelchar-sprites daraus vorab erzeugen, letztere wieder im GraRAM.

Verfasst: 04.10.2007 01:14
von Scarabol
Mit den eigenen Fonts ist super, nur muss man sich erstma was einfallen lassen....

Gruß
Scarabol

Verfasst: 04.10.2007 11:46
von Zaphod
STARGÅTE hat geschrieben:wenn mein Ordner mit den Sprites nicht großer als 10MB ist, dann brauchst es doch auch nicht mehr als 10MB in der GK oder ?
Doch, möglicherweise sogar viel mehr.

Verfasst: 05.10.2007 16:13
von hardfalcon
Es gibt z.B. bei vielen Linux-Distributionen einen Haufen freier Schriftarten, die du, je nachdem, unter welcher Lizenz dein Spiel steht, vermutlich mitliefern dürftest.

Verfasst: 05.10.2007 16:23
von X0r
Zu dumm dass Fusselohr Windows verwendet. ;)

Verfasst: 05.10.2007 16:45
von hardfalcon
Was ihn nicht daran hindern dürfte, sich entsprechende Schriftarten herunterzuladen. Die Pakete ann man bei den meisten Linux-Distro auch online mit einem ganz normalen Browser aus der Paketdatenbank der jeweiligen Distribution herunterladen, die Paketdateien sind meistens ganz gewöhnliche .tar.gz- oder .tar.bz2-Archive, die man mit jedem (Ent)packprogramm, das dieser Bezeichnung halbwegs würdig ist, entpacken kann.

//EDIT: Wenn du z.B. Bitstream Vera willst, hier ist die Lizenz:
http://www.gnome.org/fonts/#Final_Bitstream_Vera_Fonts hat geschrieben:Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved. Bitstream Vera is a trademark of Bitstream, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of the fonts accompanying this license (“Fonts”) and associated documentation files (the “Font Software”), to reproduce and distribute the Font Software, including without limitation the rights to use, copy, merge, publish, distribute, and/or sell copies of the Font Software, and to permit persons to whom the Font Software is furnished to do so, subject to the following conditions:

The above copyright and trademark notices and this permission notice shall be included in all copies of one or more of the Font Software typefaces.

The Font Software may be modified, altered, or added to, and in particular the designs of glyphs or characters in the Fonts may be modified and additional glyphs or characters may be added to the Fonts, only if the fonts are renamed to names not containing either the words “Bitstream” or the word “Vera”.

This License becomes null and void to the extent applicable to Fonts or Font Software that has been modified and is distributed under the “Bitstream Vera” names.

The Font Software may be sold as part of a larger software package but no copy of one or more of the Font Software typefaces may be sold by itself.

THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL BITSTREAM OR THE GNOME FOUNDATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.

Except as contained in this notice, the names of Gnome, the Gnome Foundation, and Bitstream Inc., shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Font Software without prior written authorization from the Gnome Foundation or Bitstream Inc., respectively. For further information, contact: fonts at gnome dot org.
//EDIT2: Und hier noch das Copyright-FAQ zu Bistream Vera:
Copyright FAQ
I don't understand the resale restriction... What gives?

Bitstream is giving away these fonts, but wishes to ensure its competitors can't just drop the fonts as is into a font sale system and sell them as is. It seems fair that if Bitstream can't make money from the Bitstream Vera fonts, their competitors should not be able to do so either. You can sell the fonts as part of any software package, however.

I want to package these fonts separately for distribution and sale as part of a larger software package or system. Can I do so?

Yes. A RPM or Debian package is a "larger software package" to begin with, and you aren't selling them independently by themselves. See 1. above.

Are derivative works allowed?

Yes!

Can I change or add to the font(s)?

Yes, but you must change the name(s) of the font(s).

Under what terms are derivative works allowed?

You must change the name(s) of the fonts. This is to ensure the quality of the fonts, both to protect Bitstream and Gnome. We want to ensure that if an application has opened a font specifically of these names, it gets what it expects (though of course, using fontconfig, substitutions could still could have occurred during font opening). You must include the Bitstream copyright. Additional copyrights can be added, as per copyright law. Happy Font Hacking!

If I have improvements for Bitstream Vera, is it possible they might get adopted in future versions?

Yes. The contract between the Gnome Foundation and Bitstream has provisions for working with Bitstream to ensure quality additions to the Bitstream Vera font family. Please contact us if you have such additions. Note, that in general, we will want such additions for the entire family, not just a single font, and that you'll have to keep both Gnome and Jim Lyles, Vera's designer, happy! To make sense to add glyphs to the font, they must be stylistically in keeping with Vera's design. Vera cannot become a "ransom note" font. Jim Lyles will be providing a document describing the design elements used in Vera, as a guide and aid for people interested in contributing to Vera, when he gets back from a well-deserved vacation.

I want to sell a software package that uses these fonts: Can I do so?

Sure. Bundle the fonts with your software and sell your software with the fonts. That is the intent of the copyright.

If applications have built the names "Bitstream Vera" into them, can I override this somehow to use fonts of my choosing?

This depends on exact details of the software. Most open source systems and software (e.g., Gnome, KDE, etc.) are now converting to use fontconfig (see www.fontconfig.org) to handle font configuration, selection and substitution; it has provisions for overriding font names and subsituting alternatives. An example is provided by the supplied local.conf file, which chooses the family Bitstream Vera for "sans", "serif" and "monospace". Other software (e.g., the XFree86 core server) has other mechanisms for font substitution.